≡ Menu

Bash case switch

5 Bash Case Statement Examples

Bash shell case statement is similar to switch statement in C. It can be used to test simple values like integers and characters. Case statement is not a loop, it doesn’t execute a block of code for n number of times. Instead, bash shell checks the condition, and controls the flow of the program. In [...]

{ 12 comments }