Bash case Statement Syntax and Examples - phoenixNAP
https://phoenixnap.com/kb/bash-case-statement
Example 1: Output A Description For Each OptionExample 2: Using Multiple PatternsExample 3: For LoopsExample 4: Create An Address BookExample 5: Check Character TypeThe casestatement allows using multiple patterns in each clause. If the expression matches the specified patterns, the script executes the commands in that clause. This example script prompts the user to enter a month and outputs the number of days. There are three possible answers: 1. 30 days. 2. 31 days. 3. 28 or 29 days for February. Follow the ...See more on phoenixnap.com The casestatement allows using multiple patterns in each clause. If the expression matches the specified patterns, the script executes the commands in that clause. This example script prompts the user to enter a month and outputs the number of days. There are three possible answers: 1. 30 days. 2. 31 days. 3. 28 or 29 days for February. Follow the ...
The casestatement allows using multiple patterns in each clause. If the expression matches the specified patterns, the script executes the commands in that clause. This example script prompts the user to enter a month and outputs the number of days. There are three possible answers: 1. 30 days. 2. 31 days. 3. 28 or 29 days for February. Follow the ...
DA: 73 PA: 16 MOZ Rank: 19