View Single Post
Old 01-08-2005, 09:39 PM  
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Shame you're not using some variety of unix... a simple regex would cover it:

sed 's/<!--.*blah.*-->/<!-- foo -->/g' < oldfile.html > newfile.html

Guess it's a little more complex in other OSes.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote