Created
May 23, 2013 20:51
-
-
Save pplantinga/5639332 to your computer and use it in GitHub Desktop.
A beautiful little script by my friend Brad Greco. It is awesome.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This program prints "This is madness!" in many colors. It is awesome. | |
# Author: Brad Greco | |
# Author URL: http://bgreco.net | |
j=1; | |
add=1; | |
for ((k=1; k<1000; k++)) do | |
for ((i=30; i<38; i++)) do | |
printf "\e[2K\e[$j""G\e[$i""mThis is madness!" | |
sleep .1 | |
let "j=$j+$add" | |
if [ $j -eq 65 ] | |
then | |
add=-1 | |
fi | |
if [ $j -eq 1 ] | |
then | |
add=1 | |
fi | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment