I have a text file which repetitively contains a specific string. 24 lines after each occurrence of the string is the data I want, and want to copy to a file.
For a multitude of mundane reasons, this needs to done with a DOS batch file.
I can search the text file and identify the line number of the target string, and add 24 to that to get to the line number of the data I want. This is all embedded in a loop which I have checked identifies all of the lines I want. Now, knowing the line numbers, whats the easiest way of copying the content of that line to an external file? I’m sure it must be simple, but has been driving me mad for most of the morning.
Ta in advance…..