bash case statement

Shell
case "$1" in
        start)
            start ;;
        stop)
            stop ;;
        restart)
            stop; start ;;
        *)
            echo $"Usage: $0 {start|stop|restart}"
            exit 1
esaccase expression in
    pattern1 )
        statements ;;
    pattern2 )
        statements ;;
    ...
esac

Source

Also in Shell: