Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ridingintraffic
Created December 23, 2018 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridingintraffic/c81fecb2d17afa771ac2ec97ac8f29cc to your computer and use it in GitHub Desktop.
Save ridingintraffic/c81fecb2d17afa771ac2ec97ac8f29cc to your computer and use it in GitHub Desktop.
lunch picker
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