From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,bdc09f67abf4aaf5 X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,bdc09f67abf4aaf5 X-Google-Attributes: gidfee84,public X-Google-Thread: 1012a6,bdc09f67abf4aaf5 X-Google-Attributes: gid1012a6,public From: ben@scientia.demon.co.uk (Ben Smithurst) Subject: Re: grep command Date: 1999/10/13 Message-ID: #1/1 X-Deja-AN: 536299394 X-NNTP-Posting-Host: scientia.demon.co.uk:212.228.14.13 References: <3803772b.5152184@192.9.200.16> <7u067u$j9l$1@news3.infoave.net> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 939832150 nnrp-06:5537 NO-IDENT scientia.demon.co.uk:212.228.14.13 User-Agent: slrn/0.9.5.7 (UNIX) NNTP-Posting-Date: 13 Oct 1999 15:02:31 GMT Newsgroups: comp.unix.shell,comp.unix.osf.osf1,comp.unix.admin Mike Fagan wrote: > John Allen wrote in message > news:3803772b.5152184@192.9.200.16... > >> 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? > > This is a problem we had to work on with our DNS server that has more than > 6000 files that we often have to search through to find information. Try > something along the lines of this: > > ls * | xargs grep > > I may not have the exact command right - do a man on xargs for more > information. I think you misunderstood. John, if I'm understanding correctly, wants to use a lot of regular expressions contained in list.dat on just one or a few files. Your solution is the reverse -- a single regex on a lot of files (if I'm understanding you correctly). -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk