Bash case switch

5 Bash Case Statement Examples

by Sasikala on July 13, 2010

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 this article let us review the bash case command with 5 practical examples.
(more…)

{ 8 comments }