nafees has asked for the wisdom of the Perl Monks concerning the following question:
hello,
i'm trying to insert meta tags into html files. is this possible using a command line eg:
perl -pi -e 's/(<head>)/(<head><meta http-equiv=\"Content-Type\" conte +nt=\"text\/html; charset=ISO-8859-1\"\/>)/gi' *.htm*
which basically looks for <head> tags and adds the <meta...> to it. it gives me a "< expected" error.
can anyone plz help?
much appreciated.
Formatting and code tags added by davido.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inserting into html files
by brian_d_foy (Abbot) on Feb 03, 2005 at 01:09 UTC | |
|
Re: inserting into html files
by Cody Pendant (Prior) on Feb 03, 2005 at 01:12 UTC | |
|
Re: inserting into html files
by friedo (Prior) on Feb 03, 2005 at 00:31 UTC | |
by nafees (Initiate) on Feb 03, 2005 at 00:35 UTC | |
|
Re: inserting into html files
by Anonymous Monk on Feb 03, 2005 at 11:08 UTC |