Hi,
I have a file with 1823194 lines of text which I need to search through. Each line is formatted like this:
Every line has a different ID, so no line is the same. I tried using native perl code to loop through the whole file. This, takes a very long time, and kept running out of memory. Linux' grep was way faster.
I'm succesfully using grep, but grep doesnt stop searching through the file until it reaches the last line.
How can I have perl stop a system() function when it has found the line I need?