Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
[Discipulus]: map of intenet

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-11-23 21:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (338 votes). Check out past polls.

    Notices?