#!/bin/csh -f 
@ i = 0 
foreach file (*.gif)
cp -pru  ${file} ${i}.gif
echo ${i}
@ i ++ 
 
end 
