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