See the UNIX Programmers Manual or via % man csh
% foreach i (*text*) ? mv $i $i.n ? end will perform a mv of each file (in the current directory) whose name contains the string "text"; the new filename will have ".n" appended to it. This can be effective for globally changing filenames.
To Index