<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Color on Amit Agarwal Linux Blog</title>
    <link>/tags/color/</link>
    <description>Recent content in Color on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 22 Jul 2019 00:55:11 +0000</lastBuildDate>
    
	<atom:link href="/tags/color/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>terminal.sexy – make your teminal sexy</title>
      <link>/2019/07/22/terminal-sexy-make-your-teminal-sexy/</link>
      <pubDate>Mon, 22 Jul 2019 00:55:11 +0000</pubDate>
      
      <guid>/2019/07/22/terminal-sexy-make-your-teminal-sexy/</guid>
      <description>&lt;p&gt;terminal.sexy is a nice webpage that allows you to select the colors for your terminal and then you can export it in various formats.&lt;/p&gt;
&lt;p&gt;Main site : &lt;a href=&#34;http://terminal.sexy&#34;&gt;http://terminal.sexy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and for the source code: &lt;a href=&#34;https://github.com/stayradiated/terminal.sexy&#34;&gt;Github URL&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>GREP_COLORS – change the colors in the GREP output.</title>
      <link>/2019/04/22/grep_colors-change-the-colors-in-the-grep-output/</link>
      <pubDate>Mon, 22 Apr 2019 01:00:59 +0000</pubDate>
      
      <guid>/2019/04/22/grep_colors-change-the-colors-in-the-grep-output/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Today we will look at the variable &lt;strong&gt;GREP_COLORS&lt;/strong&gt;. This variable determines the &lt;a class=&#34;zem_slink&#34; title=&#34;Color&#34; href=&#34;http://en.wikipedia.org/wiki/Color&#34; rel=&#34;wikipedia&#34;&gt;colour&lt;/a&gt; that is used with the &lt;a class=&#34;zem_slink&#34; title=&#34;Grep&#34; href=&#34;http://en.wikipedia.org/wiki/Grep&#34; rel=&#34;wikipedia&#34;&gt;grep&lt;/a&gt; command. You can look at the &lt;a class=&#34;zem_slink&#34; title=&#34;Man page&#34; href=&#34;http://en.wikipedia.org/wiki/Man_page&#34; rel=&#34;wikipedia&#34;&gt;man page&lt;/a&gt; of the grep command to see what the various options mean. Here is the excerpt from the man command:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;GREP_COLORS
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;          Specifies the colors and other attributes used to highlight various  parts  of  the
          output.   Its  value  is  a  colon-separated  list of capabilities that defaults to
          ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36  with  the  rv  and  ne   boolean
          capabilities omitted (i.e., false).  Supported capabilities are as follows.

          sl=    SGR  &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Substring&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Substring&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;substring&amp;lt;/a&amp;gt;  for  whole  selected lines (i.e., matching lines when the -v
                 command-line option is omitted, or non-matching lines when -v is specified).
                 If however the boolean rv capability and the -v command-line option are both
                 specified, it applies to context matching lines  instead.   The  &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Default (finance)&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Default_%28finance%29&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;default&amp;lt;/a&amp;gt;  is
                 empty (i.e., the terminal&#39;s default color pair).

          cx=    SGR  substring for whole context lines (i.e., non-matching lines when the -v
                 command-line option is omitted, or matching lines when -v is specified).  If
                 however  the  boolean  rv capability and the -v command-line option are both
                 specified, it applies to selected non-matching lines instead.   The  default
                 is empty (i.e., the terminal&#39;s default color pair).

          rv     &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Boolean data type&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Boolean_data_type&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;Boolean  value&amp;lt;/a&amp;gt;  that  reverses  (swaps)  the  meanings  of  the  sl= and cx=
                 capabilities when the -v command-line option is specified.  The  default  is
                 false (i.e., the capability is omitted).

          mt=01;31
                 SGR  substring  for  matching  &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Empty set&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Empty_set&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;non-empty&amp;lt;/a&amp;gt;  text in any matching line (i.e., a
                 selected line when the -v command-line option is omitted, or a context  line
                 when  -v  is specified).  Setting this is equivalent to setting both ms= and
                 mc= at once to the same value.  The default is a bold  red  text  foreground
                 over the current line background.

          ms=01;31
                 SGR substring for matching non-empty text in a selected line.  (This is only
                 used when the -v command-line option is omitted.)  The effect of the sl= (or
                 cx=  if  rv) capability remains active when this kicks in.  The default is a
                 bold red text foreground over the current line background.

          mc=01;31
                 SGR substring for matching non-empty text in a context line.  (This is  only
                 used  when  the -v command-line option is specified.)  The effect of the cx=
                 (or sl= if rv) capability remains active when this kicks in.  The default is
                 a bold red text foreground over the current line background.

          fn=35  SGR  substring  for file names prefixing any content line.  The default is a
                 magenta text foreground over the terminal&#39;s default background.

          ln=32  SGR substring for &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Line number&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Line_number&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;line numbers&amp;lt;/a&amp;gt; prefixing any content line.  The default is a
                 green text foreground over the terminal&#39;s default background.

          bn=32  SGR substring for byte offsets prefixing any content line.  The default is a
                 green text foreground over the terminal&#39;s default background.

          se=36  SGR substring for separators that are inserted between selected line  fields
                 (:),  between context line fields, (-), and between groups of adjacent lines
                 when nonzero context  is  specified  (--).   The  default  is  a  cyan  text
                 foreground over the terminal&#39;s default background.

          ne     Boolean  value that prevents clearing to the &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Newline&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Newline&amp;quot; rel=&amp;quot;wikipedia&amp;quot;&amp;gt;end of line&amp;lt;/a&amp;gt; using Erase in Line
                 (EL) to Right (\33[K) each time a colorized item ends.  This  is  needed  on
                 terminals on which EL is not supported.  It is otherwise useful on terminals
                 for which the back_color_erase (bce) boolean terminfo  capability  does  not
                 apply,  when  the  chosen  highlight colors do not affect the background, or
                 when EL is too slow or causes too much flicker.  The default is false (i.e.,
                 the capability is omitted).
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/pre&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>gnome-terminal color schemes.</title>
      <link>/2012/08/21/gnome-terminal-color-schemes/</link>
      <pubDate>Tue, 21 Aug 2012 01:23:17 +0000</pubDate>
      
      <guid>/2012/08/21/gnome-terminal-color-schemes/</guid>
      <description>&lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/90525468@N00/84319781&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;Colours&#34; src=&#34;https://i2.wp.com/farm1.static.flickr.com/41/84319781_769e3cbfc2_m.jpg?resize=240%2C182&#34; alt=&#34;Colours&#34; width=&#34;240&#34; height=&#34;182&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Colours (Photo credit: CherrySoda!)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I was looking for a way to set the terminal &lt;a class=&#34;zem_slink&#34; title=&#34;Color&#34; href=&#34;http://en.wikipedia.org/wiki/Color&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;colors&lt;/a&gt; for gnome. There is a &lt;a class=&#34;zem_slink&#34; title=&#34;Graphical user interface&#34; href=&#34;http://en.wikipedia.org/wiki/Graphical_user_interface&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;GUI&lt;/a&gt; way to change the same by going to the &lt;em&gt;Preferences-&amp;gt;Colors&lt;/em&gt;. And then you can change the colors that you see in the color pallete in the bottom of the &lt;a class=&#34;zem_slink&#34; title=&#34;Dialog box&#34; href=&#34;http://en.wikipedia.org/wiki/Dialog_box&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;dialog box&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But I was looking at doing it faster and better, and finally I found this page.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>colors in bash scripts</title>
      <link>/2012/04/30/colors-bash-scripts/</link>
      <pubDate>Mon, 30 Apr 2012 03:52:29 +0000</pubDate>
      
      <guid>/2012/04/30/colors-bash-scripts/</guid>
      <description>&lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/90525468@N00/84319781&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;Colours&#34; src=&#34;https://i2.wp.com/farm1.static.flickr.com/41/84319781_769e3cbfc2_m.jpg?resize=240%2C182&#34; alt=&#34;Colours&#34; width=&#34;240&#34; height=&#34;182&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Colours (Photo credit: CherrySoda!)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I have been trying to understand the &lt;a class=&#34;zem_slink&#34; title=&#34;Color code&#34; href=&#34;http://en.wikipedia.org/wiki/Color_code&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;color codes&lt;/a&gt; for &lt;a class=&#34;zem_slink&#34; title=&#34;Bash (Unix shell)&#34; href=&#34;http://www.gnu.org/software/bash/&#34; rel=&#34;homepage&#34; target=&#34;_blank&#34;&gt;bash&lt;/a&gt; for a pretty long time, but somehow never got time to understand this clearly. So this time around when I was writing a &lt;a class=&#34;zem_slink&#34; title=&#34;Screenplay&#34; href=&#34;http://en.wikipedia.org/wiki/Screenplay&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;script&lt;/a&gt; to analyze some logs. I thought I will give it a go and finally understood some part of this.&lt;/p&gt;
&lt;p&gt;So, first we will start with this script. This is taken from &lt;a href=&#34;http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Try all colors in xterm with script before setting the color</title>
      <link>/2011/03/18/try-all-colors-in-xterm-with-script-before-setting-the-color/</link>
      <pubDate>Fri, 18 Mar 2011 07:41:39 +0000</pubDate>
      
      <guid>/2011/03/18/try-all-colors-in-xterm-with-script-before-setting-the-color/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;If you are looking for testing the &lt;a class=&#34;zem_slink&#34; title=&#34;Color&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Color&#34;&gt;colors&lt;/a&gt; on how they would look like in the &lt;a class=&#34;zem_slink&#34; title=&#34;Xterm&#34; rel=&#34;homepage&#34; href=&#34;http://invisible-island.net/xterm/&#34;&gt;xterm&lt;/a&gt; before you set the color then here is a small script for you.&lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;27&lt;br /&gt;28&lt;br /&gt;29&lt;br /&gt;30&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      #!/bin/bash -&amp;lt;br /&amp;gt; #===============================================================================&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; #          FILE:  xterm_colors-test.sh&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; #         USAGE:  ./xterm_colors-test.sh&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; #   DESCRIPTION:  Test all the colors for xterm bg&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; #       OPTIONS:  ---&amp;lt;br /&amp;gt; #  REQUIREMENTS:  ---&amp;lt;br /&amp;gt; #          BUGS:  ---&amp;lt;br /&amp;gt; #         NOTES:  ---&amp;lt;br /&amp;gt; #        AUTHOR:   Amit Agarwal (amit.agarwal@amit-agarwal.co.in), aka&amp;lt;br /&amp;gt; #       COMPANY:  Individual&amp;lt;br /&amp;gt; #       VERSION:  1.0&amp;lt;br /&amp;gt; #       CREATED:  02/18/2011 01:02:51 PM IST&amp;lt;br /&amp;gt; #      REVISION:  1.0&amp;lt;br /&amp;gt; #===============================================================================&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; cat /usr/share/X11/rgb.txt |sed &#39;s/\([0-9]\{1,3\}[ \t]*\)\{3\}//&#39;|sed &#39;s/^ *//&#39; &amp;gt;~/rgb.txt&amp;lt;br /&amp;gt; while read line&amp;lt;br /&amp;gt; do&amp;lt;br /&amp;gt; bg=$(echo $line)&amp;lt;br /&amp;gt; echo $line&amp;lt;br /&amp;gt; echo &amp;quot;Trying $bg color&amp;quot;&amp;lt;br /&amp;gt; xterm -bg &amp;quot;$bg&amp;quot;&amp;amp;&amp;lt;br /&amp;gt; sleep 5&amp;lt;br /&amp;gt; kill -9 $!&amp;lt;br /&amp;gt; done &amp;lt; ~/rgb.txt
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;This can be used in various ways but I will leave the choice to you. One option that I should probably still tell is :&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>gnomecc color scheme - my favourite.</title>
      <link>/2010/07/11/gnomecc-color-scheme-my-favourite/</link>
      <pubDate>Sun, 11 Jul 2010 07:59:26 +0000</pubDate>
      
      <guid>/2010/07/11/gnomecc-color-scheme-my-favourite/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;my favourite &amp;lt;a href=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2009/06/gtkrc-2.0-gnome-color-chooser&amp;quot;&amp;gt;gtkrc-2&lt;/a&gt; file.&lt;/p&gt;
&lt;p&gt;Snapshot of how it looks.&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2009/06/desktop.jpg&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;size-medium wp-image-796&amp;quot; title=&amp;quot;desktop&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2009/06/desktop-300x187.jpg&amp;quot; alt=&amp;quot;desktop&amp;quot; width=&amp;quot;300&amp;quot; height=&amp;quot;187&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot; style=&amp;quot;margin-top: 10px; height: 15px;&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Enhanced by Zemanta&amp;quot; href=&amp;quot;http://www.zemanta.com/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; style=&amp;quot;border: medium none; float: right;&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_e1.png&amp;quot; alt=&amp;quot;Enhanced by Zemanta&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related pretty-attribution&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>CLI Color and bash prompt.. some colored fun with prompts in bash</title>
      <link>/2010/06/29/cli-color-and-bash-prompt-some-colored-fun-with-prompts-in-bash/</link>
      <pubDate>Tue, 29 Jun 2010 12:23:10 +0000</pubDate>
      
      <guid>/2010/06/29/cli-color-and-bash-prompt-some-colored-fun-with-prompts-in-bash/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;There are two ways to do it, one is with tput command. We will see that some other time, today we will consider the escape sequence way.&lt;/p&gt;
&lt;p&gt;First we need to understand the colors as understood by bash. Some time back a fried of mine gave me this little script to find the colors. You can download it &amp;lt;a href=&amp;quot;http://blog.amit-agarwal.co.in/2009/03/bash_colors&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Script bash colors&lt;/a&gt;. Here is the script&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#!/bin/bash&lt;/p&gt;
&lt;p&gt;T=&amp;amp;#8217;amit agarwal&amp;amp;#8217;   # The test text&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Enhance photos quickly with GIMP</title>
      <link>/2010/06/17/enhance-photos-quickly-with-gimp/</link>
      <pubDate>Thu, 17 Jun 2010 15:56:52 +0000</pubDate>
      
      <guid>/2010/06/17/enhance-photos-quickly-with-gimp/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Okay today I will show you how to enhance or make the photo look better with GIMP. Digital photos are good but can be made better with GIMP. I will take you step by step with the process. There are many other things that you can do but I will cover only basic stuff. So here we go.&lt;/p&gt;
&lt;p&gt;Take a photo of your choice.&lt;/p&gt;
&lt;p&gt;&amp;lt;img class=&amp;quot;size-full wp-image-503&amp;quot; title=&amp;quot;Monkey&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/dscf5962.jpg&amp;quot; alt=&amp;quot;Monkey&amp;quot; width=&amp;quot;387&amp;quot; height=&amp;quot;542&amp;quot; /&amp;gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>colors in bash -- script to display all the possible colors.</title>
      <link>/2010/06/07/colors-bash-script-display-colors/</link>
      <pubDate>Sun, 06 Jun 2010 20:58:11 +0000</pubDate>
      
      <guid>/2010/06/07/colors-bash-script-display-colors/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;If you wanted to have colors in the &lt;a class=&#34;zem_slink&#34; title=&#34;Bash (Unix shell)&#34; rel=&#34;homepage&#34; href=&#34;http://tiswww.case.edu/php/chet/bash/bashtop.html&#34;&gt;bash&lt;/a&gt; output (including the colors in PS1-4), don&amp;amp;#8217;t you keep wondering how the &lt;a class=&#34;\&amp;quot;zem_slink&#34; title=&#34;\&amp;quot;Color\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34; href=&#34;\&#34;&gt;color&lt;/a&gt; code would look on the terminal. So, I wrote this small script to show the complete color codes. This is how the output would look:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;%5C&#34;&gt;&lt;img class=&#34;\&amp;quot;size-medium&#34; title=&#34;\&amp;quot;Bash&#34; src=&#34;\&#34; alt=&#34;\&amp;quot;Bash&#34; width=&#34;\&amp;quot;221\&amp;quot;&#34; height=&#34;\&amp;quot;300\&amp;quot;&#34; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And here is the script:&lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;height:900px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;27&lt;br /&gt;28&lt;br /&gt;29&lt;br /&gt;30&lt;br /&gt;31&lt;br /&gt;32&lt;br /&gt;33&lt;br /&gt;34&lt;br /&gt;35&lt;br /&gt;36&lt;br /&gt;37&lt;br /&gt;38&lt;br /&gt;39&lt;br /&gt;40&lt;br /&gt;41&lt;br /&gt;42&lt;br /&gt;43&lt;br /&gt;44&lt;br /&gt;45&lt;br /&gt;46&lt;br /&gt;47&lt;br /&gt;48&lt;br /&gt;49&lt;br /&gt;50&lt;br /&gt;51&lt;br /&gt;52&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      #!/bin/bash -&amp;lt;br /&amp;gt; #===============================================================================&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;FILE: &amp;amp;nbsp;colors.sh&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; USAGE: &amp;amp;nbsp;./colors.sh&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; # &amp;amp;nbsp; DESCRIPTION: &amp;amp;nbsp;Bash colors&amp;lt;br /&amp;gt; #&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; OPTIONS: &amp;amp;nbsp;---&amp;lt;br /&amp;gt; # &amp;amp;nbsp;REQUIREMENTS: &amp;amp;nbsp;---&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;BUGS: &amp;amp;nbsp;---&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; NOTES: &amp;amp;nbsp;---&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;AUTHOR: &amp;amp;nbsp;Amit Agarwal (AKA), amit.agarwal@amit-agarwal.co.in&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; COMPANY: &amp;amp;nbsp;Individual&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; VERSION: &amp;amp;nbsp;1.0&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; CREATED: &amp;amp;nbsp;09/21/2009 06:12:07 PM IST&amp;lt;br /&amp;gt; # &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;REVISION: &amp;amp;nbsp;---&amp;lt;br /&amp;gt; #===============================================================================&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; for c in `seq 0 255`;&amp;lt;br /&amp;gt; do&amp;lt;br /&amp;gt; t=5;&amp;lt;br /&amp;gt; [[ $c -lt 108 ]]&amp;amp;&amp;amp;t=0;&amp;lt;br /&amp;gt; for i in `seq $t 5`;&amp;lt;br /&amp;gt; do&amp;lt;br /&amp;gt; #Display the codes also for easier lookup in terminal&amp;lt;br /&amp;gt; &amp;lt;!--loginview start--&amp;gt;echo $i;${c}&amp;lt;!--loginview end--&amp;gt;&amp;lt;br /&amp;gt; echo -e &amp;quot;&amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Path (computing)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Path_%28computing%29&amp;quot;&amp;gt;\\&amp;lt;/a&amp;gt;\e[0;48;$i;${c}m|| $i:$c `seq -s+0 $(($COLUMNS/2))|tr -d \&#39;[0-9]\&#39;`\\e[0m&amp;quot;;&amp;lt;br /&amp;gt; done;&amp;lt;br /&amp;gt; done&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; # setup_colors - Adds colors to array CC for global use&amp;lt;br /&amp;gt; # 30 - Black, 31 - Red, 32 - Green, 33 - Yellow, 34 - Blue,&amp;lt;br /&amp;gt; # 35 - Magenta, 36 - Blue/Green, 37 - White,&amp;lt;br /&amp;gt; # 30/42 - Black on Green \&#39;30\\;42\&#39;&amp;lt;br /&amp;gt; &amp;lt;!--loginview start--&amp;gt;function setup_colors(){&amp;lt;br /&amp;gt; declare -a CC;&amp;lt;br /&amp;gt; for i in `seq 0 7`;&amp;lt;br /&amp;gt; do&amp;lt;br /&amp;gt; ii=$(($i+7));&amp;lt;br /&amp;gt; CC[$i]=&amp;quot;\\033[1;3${i}m&amp;quot;;&amp;lt;br /&amp;gt; CC[$ii]=&amp;quot;\\033[0;3${i}m&amp;quot;;&amp;lt;br /&amp;gt; done;&amp;lt;br /&amp;gt; CC[15]=&amp;quot;\\033[30;42m&amp;quot;;&amp;lt;br /&amp;gt; R=$\&#39;\\033[0;00m\&#39;;&amp;lt;br /&amp;gt; X=$\&#39;\\033[1;37m\&#39;;&amp;lt;br /&amp;gt; export R X;&amp;lt;br /&amp;gt; }&amp;lt;br /&amp;gt; function display_colors(){&amp;lt;br /&amp;gt; for i in $(seq 0 $((${#CC[@]} - 1))); do echo -e &amp;quot;${CC[$i]}[$i]\\n$R&amp;quot;; done&amp;lt;br /&amp;gt; }
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;h6 id=&#34;related-articles-by-a-classzem_slink-titlezemanta-relhomepage-hrefhttpwwwzemantacomzemantaa-zemanta-related-title&#34;&gt;Related articles by &lt;a class=&#34;zem_slink&#34; title=&#34;Zemanta&#34; rel=&#34;homepage&#34; href=&#34;http://www.zemanta.com&#34;&gt;Zemanta&lt;/a&gt; {.&amp;quot;zemanta-related-title&amp;quot;}&lt;/h6&gt;
&lt;ul class=&#34;\&amp;quot;zemanta-article-ul\&amp;quot;&#34;&gt;
  &lt;li class=&#34;\&amp;quot;zemanta-article-ul-li\&amp;quot;&#34;&gt;
    &lt;a href=&#34;\&#34;&gt;unbound variable &amp;#8211; bash completion not working and having issues with other stuff like command not found.&lt;/a&gt; (amit-agarwal.co.in)
  &lt;/li&gt;
  &lt;li class=&#34;\&amp;quot;zemanta-article-ul-li\&amp;quot;&#34;&gt;
    &lt;a href=&#34;\&#34;&gt;Modifying the bashrc or bash startup files.&lt;/a&gt; (amit-agarwal.co.in)
  &lt;/li&gt;
  &lt;li class=&#34;\&amp;quot;zemanta-article-ul-li\&amp;quot;&#34;&gt;
    &lt;a href=&#34;\&#34;&gt;Nature-Inspired Colors for Home Interiors&lt;/a&gt; (interiordecorating.suite101.com)
  &lt;/li&gt;
  &lt;li class=&#34;\&amp;quot;zemanta-article-ul-li\&amp;quot;&#34;&gt;
    &lt;a href=&#34;\&#34;&gt;Dark and Light Blue Colors in Feng Shui&lt;/a&gt; (feng-shui-concepts.suite101.com)
  &lt;/li&gt;
  &lt;li class=&#34;\&amp;quot;zemanta-article-ul-li\&amp;quot;&#34;&gt;
    &lt;a href=&#34;\&#34;&gt;Delete all files in a folder that don\&amp;#8217;t match a certain file extension&lt;/a&gt; (amit-agarwal.co.in)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;\&amp;quot;zemanta-pixie\&amp;quot;&#34;&gt;
  &lt;a class=&#34;\&amp;quot;zemanta-pixie-a\&amp;quot;&#34; title=&#34;\&amp;quot;Reblog&#34; href=&#34;\&#34;&gt;&lt;img class=&#34;\&amp;quot;zemanta-pixie-img\&amp;quot;&#34; src=&#34;\&#34; alt=&#34;\&amp;quot;Reblog&#34; /&gt;&lt;/a&gt;&lt;span class=&#34;\&amp;quot;zem-script&#34;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;border: medium none; float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;span class=&#34;zem-script more-related pretty-attribution&#34;&gt;&lt;/span&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Auto Adjust Photo color and contrast in Windows, Mac and Linux.</title>
      <link>/2010/05/19/auto-adjust-photo-color-and-contrast-in-windows-mac-and-linux/</link>
      <pubDate>Wed, 19 May 2010 16:38:40 +0000</pubDate>
      
      <guid>/2010/05/19/auto-adjust-photo-color-and-contrast-in-windows-mac-and-linux/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;http://log69.com/aaphoto_en.html&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Auto Adjust Photo&lt;/a&gt; is a tool that is very helpful if you are looking at quickly adjusting the photo. This tool does a good job of automatically doing color correction. Here is example:&lt;/p&gt;
&lt;p&gt;&amp;lt;img class=&amp;quot;size-full wp-image-624&amp;quot; title=&amp;quot;before&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/dscf5768_new.jpg&amp;quot; alt=&amp;quot;Before&amp;quot; width=&amp;quot;697&amp;quot; height=&amp;quot;522&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;img class=&amp;quot;size-full wp-image-625&amp;quot; title=&amp;quot;After&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/dscf5768_new_new.jpg&amp;quot; alt=&amp;quot;After&amp;quot; width=&amp;quot;697&amp;quot; height=&amp;quot;522&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;There is definately a scope of improvement in the processed photo, but if you have a couple of hundred photo&amp;amp;#8217;s and you can get this effect in one liner then nothing like it. Here&amp;amp;#8217;s the one liner&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Color in grep output to distinquish the matching entries</title>
      <link>/2010/02/04/color-in-grep-output-to-distinquish-the-matching-entries/</link>
      <pubDate>Thu, 04 Feb 2010 15:58:35 +0000</pubDate>
      
      <guid>/2010/02/04/color-in-grep-output-to-distinquish-the-matching-entries/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Most of the times I end up spending a lot of time to look for the string in the grep output when I do a search. This is quite frustrating and thus I looked at the options for grep command that would make my life easier and there definately is something. Here it is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;export GREP_COLOR=&amp;amp;#8221;5;36&amp;amp;#8221;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But for this to work you would still need to give the &amp;amp;#8221;–color=auto&amp;amp;#8221; option in the grep command. There are two ways to do this, create a alias for grep as &amp;amp;#8221;grep –color=auto&amp;amp;#8221; or specify the same in GREPOPTIONS.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Color output from ls – based on file type</title>
      <link>/2010/02/04/color-output-from-ls-based-on-file-type/</link>
      <pubDate>Thu, 04 Feb 2010 15:58:29 +0000</pubDate>
      
      <guid>/2010/02/04/color-output-from-ls-based-on-file-type/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Threre are certain default variables which control the color of the output from the ls command, so we will talk about them today.&lt;/p&gt;
&lt;p&gt;The first one is to get the color output from the &amp;amp;#8221;ls&amp;amp;#8221; command. We will look at the various ways to do this:&lt;/p&gt;
&lt;p&gt;First is to use this with default colors:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ls –color=auto&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now this will use the default colors which might not go with your liking 🙂 So if you want to change the colors you can use the variable called LS_COLORS.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>bash colors</title>
      <link>/2009/11/16/bash-colors/</link>
      <pubDate>Mon, 16 Nov 2009 14:14:23 +0000</pubDate>
      
      <guid>/2009/11/16/bash-colors/</guid>
      <description>&lt;div class=\&#34;zemanta-img\&#34; style=\&#34;margin: 1em; display: block;\&#34;&gt; 
&lt;div&gt;
  &lt;dl class=\&#34;wp-caption alignright\&#34; style=\&#34;width: 310px;\&#34;&gt; &lt;dt class=\&#34;wp-caption-dt\&#34;&gt;&lt;a href=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2009/11/Image:Luge_Schlucht.jpg\&#34;&gt;&lt;img title=\&#34;People participating in summer luge as a form ...\&#34; src=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/300px-Luge_Schlucht.jpg\&#34; alt=\&#34;People participating in summer luge as a form ...\&#34; width=\&#34;300\&#34; height=\&#34;225\&#34; /&gt;&lt;/a&gt;&lt;/dt&gt; &lt;dd class=\&#34;wp-caption-dd zemanta-img-attribution\&#34; style=\&#34;font-size: 0.8em;\&#34;&gt;Image via &lt;a href=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2009/11/Image:Luge_Schlucht.jpg\&#34;&gt;Wikipedia&lt;/a&gt;&lt;/dd&gt; &lt;/dl&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;For those of the terminal freaks, color is a bliss. But have you tried all the colors in the terminal. Today someone forwarded me a bash one liner for the same. Not sure where he got this from, anyway here is the one liner for you all:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
