I have a generated txt file. This file has certain lines that are redundant and need to be deleted. Each row requiring deletion has one row per row; ERROR or LINK. These tokens can appear anywhere on the line. I would like to delete these lines while keeping all the other lines.
So, if the txt file looks like this:
Good line of data
bad line of C: \ Directory \ ERROR \ myFile.dll
Another good line of data
bad line: REFERENCE
Good line
I would like the file to complete as follows:
Good line of data
Another good line of data
Good line
TIA.
string batch-file
chrome Jan 07 '09 at 1:59 2009-01-07 01:59
source share