Skip to content
Related Articles

Related Articles

case command in Linux with examples
  • Difficulty Level : Medium
  • Last Updated : 15 May, 2019

case command in Linux is the best alternative when we had to use multiple if/elif on a single variable. It is used to execute the commands based on the pattern matching.


case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac



  • help case : It displays help information.
My Personal Notes arrow_drop_up
Recommended Articles
Page :