First page
Back
Continue
Last page
Overview
Selection Structures: Using the
case
Statement
The
case
statement provides an alternative method for performing selections that may be cleaner than multiple
if/elif/else
tests
case
variable
in
pattern1
)
do something
;;
pattern2
)
do another thing
;;
esac