Bulk replace email addresses with SED ?
Hi,
Recently we 'reshuffled' our mailservers so a lot of email addresses have changed. There are still a lot of old adresses on our websites. We do have a list with all 'new@address.com' - 'very@old.address.com' translations. Is it possible to use sed with this list to replace all old addresses in the html pages or would this require more serious programming ? I can reformat this list without any problems if it needs to be in a specific format/use specific delimiters. Thanks, Wally.nl |
Create a sed script such as conv.sed (one conversion per line):
Code:
s/alpha@who\.com/nalpha@whom\.com/g Then run the command: Code:
sed -f conv.sed yourfile.html |
All times are GMT -5. The time now is 06:04 AM. |