rename files challenge...

Ben Browning plug at emptiedout.com
Fri Aug 19 17:00:40 MST 2005


You got one answer- here's another:

find . -name "*%*.*" -exec rename 's/\%//g' {} \;

~Ben

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?
> 
> Thanks
> 
> Craig
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 

-- 
---
"Confession only helps if you actually feel bad for your actions.
For you, it would just be a really long boast."
	-Tara
http://www.emptiedout.com


More information about the PLUG-discuss mailing list