Note : This works only on text files. Changes all the contents of files to Upper case recursively. # foreach filename (`ls`) if (-d $filename) then cd $filename recdir cd .. else echo $filename endif tr "[:lower:]" "[:upper:]" < $filename end