#!/bin/csh -f
set no=1460
while ("$no">0)
if [$no>900]; then
set m=3
else if ["$no">450 && "$no"<901]; then
set m=2
else
set m=1
fi
mv *$no.bin test/abc-$m-$no.bin
set no =$no-1
end
I'm a newbie to shell scripts. I'm trying to rename 1460 files using a csh script, but I get a syntax error "syntax error: unexpected end of file"
I'm on tcsh
shell.
I've tried both fi
and end
to end the if
condition. I get the same error.