Skip to content

Instantly share code, notes, and snippets.

@oxguy3
Created May 8, 2014 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oxguy3/ad974da7c5454ff8c864 to your computer and use it in GitHub Desktop.
Save oxguy3/ad974da7c5454ff8c864 to your computer and use it in GitHub Desktop.
You broke it!
#!/bin/bash
FILES=/usr/bin/*
COLOR=1
while true
do for f in $FILES
do cat $f
tput setaf $COLOR
tput bel
let "COLOR=COLOR+1"
if ((COLOR > 7)); then
let "COLOR=1"
fi
sleep 0.05
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment