I’m sad

Why doesn't "Using Csh and Tcsh" have any examples of the "switch/case" function?

It is an important feature of "using" Cshell TCshell.

switch ($var1)
case yes | YES:
echo Case: Yes; breaksw
case [nN][oO]:
echo Case: No; breaksw
default:
echo Case: default; breaksw
endsw
1 person has
this question
+1
Reply