-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-12-24 at 11:35 -0800, Randall R Schulz wrote:
Try
cat file.txt | grep -i "word"
Oh, Carlos. Say it isn't so!
Have you, too, been corrupted by pipe-itis?
Maybe it's just too much Christmas cheer...
Nop. The pipe helps if the problem is grep trying and failing to allocate the whole file in memory. But it will not help if the problem is trying to allocate a huge line in memory. I heard the limit was 64K. In that case, the only solution to use grep is to break into lines or chunks the file or use another tool. Maybe with "fold". Perhaps: cat file.txt | fold --width=10000 | grep -i "word" but that will not say the correct location of the match. I would code it myself, then. It would take time, but it would work. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHcDyGtTMYHG2NR9URAv9MAJwPXB7K7QUCOIxZIs345Y9jS++JOgCfWR1W l/8uWmeR7wjtxDDJdVivcKY= =EYDR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org