From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bdc09f67abf4aaf5 X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,bdc09f67abf4aaf5 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1012a6,bdc09f67abf4aaf5 X-Google-Attributes: gid1012a6,public From: Barry Margolin Subject: Re: grep command Date: 1999/10/12 Message-ID: #1/1 X-Deja-AN: 535910938 Distribution: world References: <3803772b.5152184@192.9.200.16> X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gtei.net X-Trace: /K49oGeRmZWa0Ax+06T2KDAVzAt72nbpCApLl/qjIq41/OT/iWwgenxib0HhXwJ6iovQl/xVJNug!LO+he3KEAMpJJHJi3PI0uIYbZqLwO0tJw4+3cZx/qJP3Hjulbm0mLG6UbN2+ig== Organization: GTE Internetworking, Cambridge, MA X-Copies-To: never NNTP-Posting-Date: Tue, 12 Oct 1999 18:42:42 GMT Newsgroups: comp.unix.shell,comp.unix.osf.osf1,comp.unix.admin Originator: barmar@bbnplanet.com (Barry Margolin) In article <3803772b.5152184@192.9.200.16>, John Allen 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.