Created
February 8, 2017 08:19
-
-
Save jatinkrmalik/6425e58f10cd50437e51c86c31d8df03 to your computer and use it in GitHub Desktop.
Get your fortune in a fancy way every 10 seconds
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 | |
# Get your fortune in a fancy way every 10 seconds. | |
# ___________________________ | |
#< Let me tell your fortune! > | |
# --------------------------- | |
# \ ^__^ | |
# \ (oo)\_______ | |
# (__)\ )\/\ | |
# ||----w | | |
# || || | |
clear | |
while true | |
do | |
tput civis | |
tput cup 2 0 | |
fortune -as | cowsay -f `ls /usr/share/cowsay/cows/ | shuf -n 1` | |
sleep 10 | |
clear | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment