Randall R Schulz wrote:
On Monday 24 December 2007 15:11, Carlos E. R. wrote:
...
The pipe helps if the problem is grep trying and failing to allocate
the whole file in memory.
Hmm... Can you show me where any of the grep commands do that?
It's hard to imagine the code (by which I mean the programmer) doing
that in a program that is completely without the ability to match
across line boundaries. It has no benefit whatsoever.
Furthermore, operating on input supplied via a pipe does not in any way
preclude a program from reading its entire input into primary storage
before operating on that input. Relatively few programs even bother to
ascertain the kind of entity to which their descriptors are attached.
...
but that will not say the correct location of the match. ...
The OP (who seems to have lost interest...) just said "I have to find if
there is a specific word in the file."
I didn't lost interest. :) Most of the things you are talking about are
beyond my knowledge and "just wait for final answer" :) :) :)
I tried few things recommended here but none worked.
As much as I can see, the only solution is to split the file into
smaller files?
-afan
--
Cheers,
Carlos E. R.
Randall Schulz
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]