0

I'm trying to find a line

"<!-- here comes the new post -->" 

in an HTML file and add some lines that will contain some vars and special characters like <>#"" below it, without replacing the lines that are already below, because the line will be always in the middle of the file.

--David

David Debnar
  • 125
  • 1
  • 3
  • 10
  • 1
    This gets asked practically every day, please do a little searching first. If you must post, you'll want people to know if you are doing this with Linux/Unix or on Windows. Tags to search for would be xmlstartlet, perl, sed, awk. Good luck. – shellter Aug 09 '11 at 14:37

1 Answers1

0

You should read Remove multi-line strings from a text file using a batch script.
If you can remove lines you should be also be able to insert lines.

Community
  • 1
  • 1
jeb
  • 78,592
  • 17
  • 171
  • 225