I am getting the error that "else:endif not found" when i gave 1 as input to following script. Please help me to get rid of this
#!/bin/csh
echo -n "Enter Input :"
set answ = $<
if($answ == 1)then
echo Awsome
echo Worst
else echo $answ
endif
the output is
[infa@bosdwetltst scripts]$ ./abc.sh
Enter Input :1
Awsome
Worst
else: endif not found.
Last edited by BunnyDoubts; 03-18-2016 at 01:08 AM.
Reason: Adding the error output
|