in reply to Stopping system()
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. ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stopping system()
by KurtSchwind (Chaplain) on Oct 30, 2007 at 13:33 UTC |