On Fri, Aug 19, 2005 at 09:17:11AM -0700, Craig White wrote: > # find . -name "*%*.*" > > locates them, how do I pass them to a mv command to rename them without > the '%' sign (I want to take the percent sign out of the filenames)? > > how about if I want to replace the % with an underscore? Try something like this: foo@bar:~$ for i in $(find . -name "*%*.*"); do \ > newname=$(echo $i |sed s/%/_/); \ > mv $i $newname; \ > done This grabs the entire list of files and for each file in the list generates a new filename by replacing the % with an _, and then mv-ing it. Hope that helps. =o) -- June Tate * http://www.theonelab.com * june@theonelab.com