Program:
#!/bin/env echo "Program to demonstrate Switch Case:"; printf "Enter a Number: "; read num case $num in 1) echo " 1 ";; 2) echo " 2 ";; 3) echo " 3 ";; 5) echo " Thank You"; exit 1;; *) echo " Default Condition ";; esac echo " Thanks for Using it.";
Output: