Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Search and Replace Entire Directories

by kwoff (Friar)
on Nov 16, 2001 at 22:50 UTC ( #125889=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    # query-replace files recursively, substituting in place
    ...
    STRING2=$2
    
    find . -type f | xargs -n 255 perl -p000i.bak -e "s/${STRING1}/${STRIN
    +G2}/g"
    
  2. or download this
        $ query-replace.sh '\<(\/)?[hH]3\>' '\<${1}H1\>'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-07-31 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?