#! /bin/tcsh

foreach file (`ls -1 w*.gif`)
set new = `echo $file | cut -d - -f1`
mv $file $new.gif
end
