set a = 1
if ($#argv == 2) then
while($a <=?)
mv $argv[1].$a.iff $argv[2].$a.iff
@ a ++
else($argv ==3) then
while($a <= $argv[2].$a.iff $argv[3].$a.iff
endif
# ls test.1.iff test.2.iff test.3.iff test.4.iff test.5.iff # csh kadai1.sh test tmp =?: No match. # ls test.1.iff test.2.iff test.3.iff test.4.iff test.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 xyz.1.iff xyz.2.iff xyz.3.iff xyz.4.iff xyz.5.iff