On Monday 24 December 2007 18:49:52 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". > > How can I do that? > Is there any way I can split the file into several files and then do > search? > > thanks for any help.
If grep can't do it, try sed sed -ne '/word/p' file.txt Anders -- Madness takes its toll -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]