Concise Bash Reference Sheet

Builtins

Dummies

Declarative

Input

Output

Execution

Jobs/Processes

Conditionals And Loops

Arguments

This way all options in the arguments are parsed and when they are either -a, -b or -c, the respective code in the case statement is executed. Following short style is also valid for specifying multiple options in the arguments that getopts parses: -ac.