I recently moved my feed from feeds.feedburner.com/labnol to feeds.labnol.org/labnol and so had to change the <link> tag inside all HTML documents to reflect the change.

One of the options was to do a vi *.html and replace text manually but here’s a simple solution:

sed -e 's/old-address/new-address/' -i *.html

If you want to replace text in just a couple of files, replace with the wildcard character with the name of the files.

You may also like:

  1. Display Text Files with a Screensaver
  2. Rename Multiple Files Efficiently Using Excel or Google Docs
  3. Use Google Docs To Compare Two Text Files Online
  4. Create MP3 Files From Text in Emails and Web Pages
  5. Online App Turns your Pictures into Text Portraits