Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: convert whitespaces to underscores

by Juerd (Abbot)
on May 26, 2002 at 00:03 UTC ( [id://169323]=note: print w/replies, xml ) Need Help??


in reply to convert whitespaces to underscores

Just a thought:

perl -e'($z = $_) =~ s/\s+/_/g, rename $_, $z or warn "$_: $!\n" for @ +ARGV' /some/directory/* /another/directory/*

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://169323]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found