From LQWiki
Case is a logical switch, e.g. in the bash shell with the following syntax:
case "$1" in
start)
echo "starting"
;;
stop)
echo "stopping"
;;
*)
echo "your parameter was not start or stop"
esac
Categories: Shell | Script | Programming

This page is available under a