Name

case

Synopsis

                     
                        case
                      
                     string
                     
                        in
                     
                     regex)
  commands
  ;;
  ...
  
                        esac
                     

If string matches regular expression regex, perform the following commands. Proceed down the list of regular expressions until one is found. (To catch all remaining strings, use * as regex at the end.)

Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.