Link to home
Create AccountLog in
Avatar of rgbcof
rgbcof

asked on

perl, loop through all the files in the directory, and replace text, and write back to file

I have a directory "c:\data" with lots of ".html" files.
I want to open each file, replace text "<h3>" to "<h1>", then write back to the files.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of rgbcof
rgbcof

ASKER

You are amazing.
Avatar of rgbcof

ASKER

You are amazing.