Pages

Friday, April 4, 2014

Print ASCII Character Chart

$ for i in {1..256};do p=" $i";echo -e "${p: -3} \\0$(($i/64*100+$i%64/8*10+$i%8))";done|cat -t|column -c120

Prints out an ascii chart using builtin bash! Then formats using cat -t and column.


The best part is:


echo -e "${p: -3} \\0$(( $i/64*100 + $i%64/8*10 + $i%8 ))";

From: http://ift.tt/1hcSHzS




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1k87xcZ

No comments:

Post a Comment