#!/bin/csh $ for x in *txt; do mv $x `echo $x | sed s/txt/doc/`; done