I am getting unexpected end of file error when use using source command to source a file.
I know how to use if..else loop in bash, this is a legacy script. The same script works properly if I run it in tcsh shell. Is there any way to make the script work both in bash & tcsh ?
below is my script,
bash>
bash> source del
-bash: del: line 6: syntax error: unexpected end of file
bash>
bash> cat del
if ( `uname` == Linux ) then
echo "One"
else
echo "Two"
endif
bash>
I have already tried all the below solutions but none of them worked..
Any reference on this would also be of great help !