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.
In reply to inserting into html files by nafees
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |