Skip to content

Instantly share code, notes, and snippets.

@tronje
Last active December 4, 2017 14:23
Show Gist options
  • Save tronje/3daed6c2a78821a79f5467fa169f8316 to your computer and use it in GitHub Desktop.
Save tronje/3daed6c2a78821a79f5467fa169f8316 to your computer and use it in GitHub Desktop.
Sub des Tages script
#!/bin/bash
day=`date +"%a"`
case "$day" in
Mon)
echo "Italian B.M.T."
;;
Tue)
echo "Salami"
;;
Wed)
echo "Turkey"
;;
Thu)
echo "Chick Fajita"
;;
Fri)
echo "Tuna"
;;
Sat)
echo "Turkey & Ham"
;;
Sun)
echo "Chicken Breast"
;;
*)
echo "error: day not found"
echo $day
exit 1
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment