Shell Scripting Tutorial for Beginners 12 - The case statement

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 ( ? * […] ) , NOT regular expressions. All the statements are executed for the first matching value until the ending ;;. If no value matches, then the default *) case is executed, if present. case statement: Specify number of possible values for variable Statement block executed for matching value Only one block executed ★★★Top Online Courses From ProgrammingKnowledge ★★★ Python Programming Course ➡️ ⚫️ Java Programming Course ➡️ ⚫️ ... #ProgrammingKnowledge #Bourne_Shell_and_Programming #Bash_scripting #Unix #Tutorials #Learning #System #OS #Beginners #Basics 20170321 dW3oYQbNFyI
Back to Top