robomarkov (robomarkov) wrote in perl,

Script help

I need help with updating multiple files in a directory. I have a block of text (multiple lines) in multiple files that needs to be replaced with another block of text. I have the two blocks of text (one for the match, and the other for the replace) in two separate files. I just am clueless as to how to do do this. I can do simple regex search and replace on a single line of a single file but don't know how to apply the technique to multiple lines over multiple files. I am just not that strong in Perl.

Any suggestions?
  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.