I need to filter out (delete?) all the lines between two other, which we could imagine like a header and a footer, of a text file.
To be clear...
Suppose the file contains the following lines:
lineA
lineB
lineC
----<AAA-START>----
line1
line2
line3
----<AAA-END>----
lineD
lineE
----<BBB-START>----
line1
line2
line3
----<BBB-END>----
lineF
lineG
[and so on...]
What I want to have to the output is a file, with the same name of the original, which contains all but the lines between ----<AAA-START>---- and ----<AAA-END>----.
In a first release of my site I did it easily using "sed" filter because I was on a Unix machine... but now I'm trying to do it with an Apache server on Win/NT and I can't use sed...
Could you help me?
Thanks in advance,
Enzo