Advertisement
shawonrog

Basic switch case syntax in bash

Jun 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. a="apple"
  2. case $a in
  3.  
  4. "mango" )
  5.  echo "Mango"
  6.  ;;
  7. "Orange" )
  8.  echo "Mango"
  9.  ;;
  10. "apple" )
  11.  echo "We got it"
  12.  ;;
  13. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement