Answers for "linux command line switch statement"

C#
2

linux command line switch statement

case $NUMBER in
  1)
    echo -n "One"
    ;;
  2 | 3)
    echo -n "Two or three"
    ;;
  10)
    echo -n "Ten"
    ;;
  *)
    echo -n "Unknown number"
    ;;
esac
Posted by: Guest on March-09-2022

C# Answers by Framework

Browse Popular Code Answers by Language