Hello,

* Francois Marier [Tue, Nov 18, 2008 at 10:01:38AM +1300]:
> I assume that you mean that the output piped to grep (i.e. grep's input)
> should be limited (not the output from grep)?

* Francois Marier [Tue, Nov 18, 2008 at 01:08:15PM +1300]:
> So basically, adding "| cut -b1-1024" before the call to grep should do the
> trick?

If you can guarantee that the expected 'php' string will happen in the
first kb of each line, yes.

I really meant to ask grep for a limited output, because if you can't
blame grep for using a lot of memory when it has to store a whole line
unbounded in size, you can expect it to use less memory when you
request a bounded output.

But your solution is likely the best, provided you don't "cut" useful
information.

Regards,

Laurent.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to