Shell Scripting Tutorial for Beginners 13 - The case statement Example
For more detailed Tutorial visit -
The case statement is used to execute statements based on specific values. Often used in place of an if statement, if there are a large number of variable is compared with the values using the shell wildcards ( ? * […] ) .
[a-z] )
specifies a range which matches any lowercase letter from “a“ to “z“
[A-Z] )
specifies a range which matches any lowercase letter from “A“ to “Z“
[0-9] )
specifies a range which matches any value 0 to 9“ ;;
? )
Matches a string with exactly one character like a, !, and so on.
* )
Matches a string with one or more characters (a nonempty string).
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ h ...
#ProgrammingKnowledge #Bourne_Shell_and_Programming #Bash_scripting #Unix #Tutorials #Learning #System #OS #Beginners #Basics
20170322
dqaMU4v6KvQ
3 views
286
56
7 years ago 00:59:12 64
Shell Scripting Tutorial
9 years ago 00:12:08 34
02. Unix Shell Scripting Tutorial - Your First Shell Script (Part1)