On Monday 24 December 2007 10:19, Afan Pasalic wrote:
> Randall R Schulz wrote:
> > ...
> >
> > Try fgrep. It doesn't use regular expression matching (and your
> > "word" is a simple fixed string, so it will work for that).
>
> "grep: memory exhausted" again
>
> :(

Grrr.

Are you sure it's a text file? Does it have proper Unix line endings? 
Does it have very long lines? Is it, perhaps, some sort of XML file?

Are you really looking for "word?" What precisely is the pattern?

Do you need to find every instance, or only determine whether the string 
occurs somewhere (at least once) within the file? If the latter, use 
the "-l" flag.

What is the ulimit setting on your system? How much RAM do you have? How 
much swap is configured?

Have you read the manual pages for grep/egrep/fgrep and / or the other 
pertinent commands?


RRS
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to