Created
April 15, 2014 14:34
-
-
Save cabreraalex/10737597 to your computer and use it in GitHub Desktop.
Colorful happy birthday message
This file contains hidden or 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 | |
red='\e[0;31m' | |
blue='\e[0;34m' | |
yellow='\e[0;33m' | |
green='\e[0;32m' | |
purple='\e[0;35m' | |
white='\e[0;37m' | |
NC='\e[0m' | |
del='\e[1A' | |
echo -e "" | |
while [ 0 -lt 1 ]; do | |
echo -e "${del}${red}Happy Birthday!${NC}" | |
sleep 0.25 | |
echo -e "${del}${blue}Happy Birthday!${NC}" | |
sleep 0.25 | |
echo -e "${del}${yellow}Happy Birthday!${NC}" | |
sleep 0.25 | |
echo -e "${del}${white}Happy Birthday!${NC}" | |
sleep 0.25 | |
echo -e "${del}${purple}Happy Birthday!${NC}" | |
sleep 0.25 | |
echo -e "${del}${green}Happy Birthday!${NC}" | |
sleep 0.25 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment