$ 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 -c120Prints 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
by David Winterbottom (codeinthehole.com)
from All commands http://ift.tt/1k87xcZ
No comments:
Post a Comment