[Gllug] Search and replace in a whole folder
Jason Clifford
jason at ukfsn.org
Tue Dec 4 13:55:33 UTC 2007
On Tue, 2007-12-04 at 13:53 +0000, Alex Singleton wrote:
> I need to update a few hundred HTML files. Basically, the footer of
> these webpages need updating. I could update them all manually, but I
> was wondering if there's a way of doing a search and replace on a
> whole folder? I understand that a command called gawk might help, but
> I don't know to use it. Any suggestions?
sed
If you are using apache consider using mod_include for common page
elements like footers so you only have to change a single file to update
all pages without recourse to such things.
Jason
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list