bash script case esac code example
Example 1: bash case statement
case expression in
pattern1 )
statements ;;
pattern2 )
statements ;;
...
esac
Example 2: bash case statement
bash case notation
case expression in
pattern1 )
statements ;;
pattern2 )
statements ;;
...
esac
bash case notation