Re: rename files challenge...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ben Browning
Date:  
To: Main PLUG discussion list
Subject: Re: rename files challenge...
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 -
> 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
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss