Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Spaces in file names passed as arguments

by Utilitarian (Vicar)
on Sep 08, 2011 at 15:50 UTC ( #924843=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    find ./ -name \*\ \* -exec perl -e ' for (@ARGV){$new=$_;$new=~s/\s+/_
    +/g;rename($_,$new);}' "{}" \;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924843]
help
Chatterbox?
[marto]: someone else writes: [http://www. evanmiller.org/why -im-learning-perl- 6.html|
[marto]: err, Why Iím Learning Perl 6

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-07-26 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (396 votes). Check out past polls.