Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 monks are getting baked in the sun...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2017-09-23 03:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (270 votes). Check out past polls.

    Notices?