in reply to Re: Stopping system()
in thread Stopping system()
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.grep BLAH INFILE.txt | head -1
|
|---|