I'm trying to delete certain lines that contains a keyword in a txt file using CMD or VBS.
I've read this but it's not the same. I want to delete a range of lines.
Original Text File:
ABCDEFGXXX
ABCD
A
AE
AXXXLKGUSP
0000ASD
ASD
Processed Text File:
0000ASD
ASD
I want to delete the range of lines containing the first instance of 'XXX' and the second.There are only two instances of this 'XXX'. The number of lines between the two instances are random and there may be a scenario where the two instances are in the same line. The 4 zeroes also appear after the line of the 2nd instance of 'XXX'. Please note that it may contain characters below, so it may choke if you try to process.
---------------------EDIT 08/04/2015 7:41 PM----------------------------------- "XXX" is all caps... and the text file may contain characters below.. it shows a single line in notepad though. IDK what they are
PK
¨‘G_t¥0 8ˆ XXXç¸[~-ÄWÀ¨Ì’gÝ