#!/bin/bash

#------------------------------------------
# expects a single command-line argument and
#    demonstrates the bash case statement
# by: S. Tuttle
# last modified: 11-27-12
#-------------------------------------------

case $1 in
    moo) echo "matched moo exactly" 
         pwd ;;
    *oink*) echo "found oink" ;;
    *baa*)  echo "found baa" ;;
    [0-9]) echo "single-digit argument" ;;
    *) echo "last option" ;;
esac