Created
December 23, 2018 03:30
-
-
Save ridingintraffic/c81fecb2d17afa771ac2ec97ac8f29cc to your computer and use it in GitHub Desktop.
lunch picker
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
function food() | |
{ | |
arr[0]="Jimmy Johns" | |
arr[1]="Pita Inn" | |
arr[2]="Noodle and company" | |
arr[3]="Potbelly" | |
arr[4]="Chipotle" | |
arr[5]="portillos" | |
arr[6]="Wendy's" | |
arr[7]="Josh's" | |
rand=$[$RANDOM % ${#arr[@]}] | |
echo -e "processing " | |
sleep 2 | |
echo -e "still thinking " | |
sleep 2 | |
echo -e "wait for it " | |
sleep 1 | |
echo $(date +%m-%d-%Y" "%H:%M:%S); | |
echo "lunch selection says" ${arr[$rand]} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment