The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-23-2006
vaibhav vaibhav is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 10
Info required for tcsh script

Hi All,

Is it possible to "switch" like this in tcsh?

switch ( "$var" )
case "1" || "2" :
set something
breakesw
case "4" || "5" || "6" :
set otherthing
breakesw
endsw