Skip to content

Instantly share code, notes, and snippets.

@pplantinga
Created May 23, 2013 20:51
Show Gist options
  • Save pplantinga/5639332 to your computer and use it in GitHub Desktop.
Save pplantinga/5639332 to your computer and use it in GitHub Desktop.
A beautiful little script by my friend Brad Greco. It is awesome.
#!/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