Friday, December 30, 2011

Impress your friends with your CLI magic in Linux





Here are two one-liners to have fun with. The first one takes a block of text you input it and displays it one character at a time, creating the impression that someone else is typing:
echo “I have a troll in my Linux box that is doing all the work for me” | pv -qL 10
The second one creates a poor, Matrix-like effect in your Teminal:
tr -c “[:digit:]” ” ” < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR=”1;32″ grep --color “[^ ]“
Have fun.

No comments:

Post a Comment