Afan Pasalic pecked at the keyboard and 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".
>>
>> 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
> :(
> 
> 

cat file.txt | grep -i "word" might work if you onlt need to know if the
"word" exists in the file.

-- 
Ken Schneider
SuSe since Version 5.2, June 1998
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to