#!/bin/csh -x foreach i (IMAGE*) mv $i `echo $i | sed 's/IMAGE/cs/'`".jpg" end