Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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

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 cooling their heels in the Monastery: (10)
As of 2016-06-30 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (399 votes). Check out past polls.