Last active
March 30, 2021 16:55
-
-
Save dbuscombe-usgs/6084687 to your computer and use it in GitHub Desktop.
How to start a BASH script (flip a coin and use cowsay)
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
# flip a coin | |
FLIP=$(($(($RANDOM%10))%2)) | |
# if heads, use cowsay to present your splash | |
if [ $FLIP -eq 1 ] | |
then | |
# start with some wisdom | |
fortune -s | cowsay -n | zenity --text-info --title="Your message here" --width 500 --height 500 | |
else | |
# or start with some other msg | |
figlet DAN ROCKS | zenity --text-info --title="Your message here" --width 600 --height 200 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment