Amit Agarwal

Linux and Photography Blog
content
tools

People participating in summer luge as a form ...
Image via Wikipedia

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:

for c in `seq 0 255`;do t=5;[[ $c -lt 108 ]]&&t=0;for i in `seq $t 5`;do echo -e “e[0;48;$i;${c}m|| $i:$c `seq -s+0 $(($COLUMNS/2))|tr -d '[0-9]‘`e[0m";done;done

Enter Your Mail Address

bash colors bash colors

Facebook comments:

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment



IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 9 + 12 ?
Please leave these two fields as-is:
address

© 2010 Amit Agarwal | Entries (RSS) and Comments (RSS) | Valid CSS 2.1 Valid XHTML 1.0 Transitional

Powered by Wordpress 3.0.1, design by Abel, handcrafted by Abel County Laboratories, based on Wsg Standards Wsg Standards

advertise

Switch to our mobile site

Page optimized by WP Minify WordPress Plugin