The following is a Linux dictionary word of the day:
case – command utilized to conditionally
perform a command based on its value.
Example:
#!/bin/sh
echo "Enter command (who, list, or cal)"
read command
case "$command" in
who)
echo "Running who"
who
;;
list)
echo "Running ls"
ls
;;
cal)
echo "Running cal"
cal
;;
*)
echo "Bad command"
;;
esac
exit 0