Shell case syntax matching values and running the matching statement.
case $var in
<val1|val2 ...>
<statement 1> ;;
<val3>
<statement 2> ;;
…
esacUpdated:
2026 Aug 19
Shell case syntax matching values and running the matching statement.
case $var in
<val1|val2 ...>
<statement 1> ;;
<val3>
<statement 2> ;;
…
esac