in reply to Re: Stopping system()
in thread Stopping system()

I was going to mention that. Also you can pipe your results to head.
grep BLAH INFILE.txt | head -1
Either way, it'll stop processing as soon as a match has been found. Also awk could be used. It's *nix, so there are lots of ways of doing it. If grep does what he wants, I say use it.
I used to drive a Heisenbergmobile, but everyone I looked at the speedometer, I got lost.