Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@bbnplanet.com>
Subject: Re: grep command
Date: 1999/10/12	[thread overview]
Message-ID: <CiLM3.778$854.30840@burlma1-snr2> (raw)
In-Reply-To: 3803772b.5152184@192.9.200.16

In article <3803772b.5152184@192.9.200.16>,
John Allen <john.allen@geonet-tech.com> wrote:
>Hi:
>
>I use the -f qualifier in grep alot.  It allows you to use a list to
>grep for expressions in a file(s).  Eg,
>
>grep -f list.dat file.dat
>
>I'm finding with my DEC(COMPAQ) V4.0e version of unix that the -f list
>file is limited to 400 records; otherwise, if that is exceeded, you
>get a 'list too large' message.
>
>Is there anything which I can set to enlarge that 400 threshold; or,
>is there a workaround?

Does the file contain regular expressions, or just fixed strings?  If
they're just fixed strings, try fgrep instead of grep; it may not have as
small a limit.  If it does, install GNU fgrep; I just tried it with 10,000
records and it worked.  However, GNU grep and egrep both complained
"Regular expression too big".

-- 
Barry Margolin, barmar@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



  reply	other threads:[~1999-10-12  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-12  4:00 grep command John Allen
1999-10-12  4:00 ` Barry Margolin [this message]
1999-10-12  4:00   ` Alain Magloire
1999-10-12  4:00 ` Mike Fagan
1999-10-13  4:00   ` Ben Smithurst
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox