Case Statements
Case Statements in BASH come in handy when you have tons of nested and complicated if statements.
Example
Note: Unlike in programming languages such as C, Case Statements stop looking for pattern once it has found the pattern and executed commands associated with it.
Source: Linuxize
Last updated