Skip to content

Instantly share code, notes, and snippets.

@cabreraalex
Created April 15, 2014 14:34
Show Gist options
  • Save cabreraalex/10737597 to your computer and use it in GitHub Desktop.
Save cabreraalex/10737597 to your computer and use it in GitHub Desktop.
Colorful happy birthday message
#!/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