Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: using find2perl to replace spaces with underscores

by kejohm (Hermit)
on Jun 16, 2011 at 06:22 UTC ( #909902=note: print w/ replies, xml ) Need Help??


in reply to using find2perl to replace spaces with underscores

You could use the output of find2perl as a good starting point for your own script, so rather than piping it to perl, redirect to a file, eg.

find2perl . -depth -eval 'my $o=$_; tr/ /_/; -e or rename $o,$_ or warn "cannot rename $o to $_: $!"' > replace_spaces.pl


Comment on Re: using find2perl to replace spaces with underscores
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-08-20 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (118 votes), past polls