set no = 1
if ($#argv <= 2) then
set files = (`ls *.iff`)
while ($no <= $#files)
mv $argv[1].$no.iff $argv[2].$no.iff
@ no ++
end
else if ($#argv >= 3) then
while ($no <= $argv[1])
mv $argv[2].$no.iff $argv[3].$no.iff
@ no ++
end
endif
# ls test.1.iff test.2.iff test.3.iff test.4.iff test.5.iff # csh kadai1.sh test tmp # ls tmp.1.iff tmp.2.iff tmp.3.iff tmp.4.iff tmp.5.iff
# ls xyz.1.iff xyz.2.iff xyz.3.iff xyz.4.iff xyz.5.iff # csh kadai1.sh 3 test tmp # ls abc.1.iff abc.2.iff abc.3.iff xyz.4.iff xyz.5.iff