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\>'