1

IF is not working in csh script

view story
linux-howto

http://www.unix.com – cat tmp0.txt 700000 Code: #!/bin/csh -fx set id=`cat tmp0.txt` echo $id if ("$id" == "700000") then   echo "Good Morning" endif if ("$id" == "700002") then         echo "Good evening"  endif My output from terminal Code: set id=`cat tmp0.txt` cat tmp0.txt echo 700000 700000  == 700000 ) then  == 700002 ) then Moderator's Comments: code tags please (HowTos)