On Dec 24, 2007 2:33 PM, Anders Johansson <[EMAIL PROTECTED]> wrote:
> On Monday 24 December 2007 20:17:45 Carlos E. R. wrote:
> > The Monday 2007-12-24 at 12:19 -0600, Afan Pasalic wrote:
> > > Randall R Schulz wrote:
> > >>  On Monday 24 December 2007 09:49, Afan Pasalic wrote:
> > >> >  hi,
> > >> >  I have 1.6 GB big text file and I have to find if there is a specific
> > >> >  word in the file.
> > >> >  Every time I try
> > >> >  $> grep -i "word" file.txt
> > >> >  I'll get message: "grep: memory exhausted".
> >
> > I would report that as a bug - unless you really have too little memory
>
> http://savannah.gnu.org/bugs/?9886
>
> > cat file.txt | grep -i "word"
>
> According to the bug report, it doesn't (always?) help
>

cat file.txt | fold | grep -i "word"

Or if file.txt is really binary junk:

strings file.bin | fold | grep -i "word"

Greg
-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to