Using Bash Case Builtin for Complex Conditional Statements

Learn how to use a case statement to selectively execute a commands based off of complex conditions. We explore the basic syntax of the case statement, the pattern termination operators, and using nocasematch shell option for case insensitive matching.

Source: LXer – Using Bash Case Builtin for Complex Conditional Statements