case and loop in Bash
Here's the general syntax of the case statement:
case value in
pattern1)
# code to execute for pattern1
;;
pattern2)
# code to execute for pattern2
;;
pattern3 | pattern4)
# code to execute for patt...
snowcodes.hashnode.dev3 min read