Well ... I'm sure there are ways to make your native perl code loop without running out of memory ... but to directly answer your question, look at the man page for grep.
-m NUM, --max-count=NUM Stop reading a file after NUM matching lines. ....
In reply to Re: Stopping system()
by derby
in thread Stopping system()
by art0rz_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |