Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: One-line shell script for find and replace

by Aristotle (Chancellor)
on Oct 08, 2005 at 23:52 UTC ( [id://498475]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MFile::Find -pi -e'BEGIN { find( sub { push @ARGV, $File::Find::
    +name if /\.txt\z/i }, "." ) } s/find/replace/'
    
  2. or download this
    perl -MFile::Find::Rule -pi -e'BEGIN { @ARGV = File::Find::Rule->name(
    + "*.txt" )->in( "." ) } s/find/replace/'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-18 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found