> #! /bin/csh -f
That's your problem right there! You don't need a script at all.
In bash/ksh/zsh right on the command line:
c=361 && for f in * ; do mv $f CD267A_3_pk_1_$c.img ; c=$(($c+1)) ; done
Bill Scott probably has some zsh slickness to do the same thing without
the loop, but too much magic gives me the willies.
-b
--
| Ben Eisenbraun
| SBGrid Consortium | http://sbgrid.org |
| Harvard Medical School | http://hms.harvard.edu |
|