Dear all,
I have output files from another software that have long text file (about 400K lines). The software however throws some text in between the data and some processor info, example
0 1 2 3 41 2 3 4 578chunk 163 4 5 6 74 5 6 7 8
and so on. There will be more than 80 occurrences of the wrong/unwanted lines (in the example line containing string chunk and the line before it (78))
So what I want to do is to open the file and delete all lines/rows that contain string chunk and the line before them.
Could you please help in the subject?
Best Answer