Mailinglist Archive: opensuse (3288 mails)

< Previous Next >
Re: [opensuse] search for word in huge txt file
  • From: Afan Pasalic <afan@xxxxxxxx>
  • Date: Mon, 24 Dec 2007 12:19:14 -0600
  • Message-id: <476FF822.2020901@xxxxxxxx>
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
:(


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >