Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]grep resistance
- To: tlug@example.com
- Subject: grep resistance
- From: Tony Laszlo <laszlo@example.com>
- Date: Sat, 4 Nov 2000 19:15:31 +0900 (JST)
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <yRKfb.A.EID.QrBB6@example.com>
- Resent-Sender: tlug-request@example.com
It is apparently not possible to grep through a directory which has a large number of files (perhaps the limit is someone near 1,000 or so). I happen to have a directory which has more than 10,000 files and found that grep gives the error "Argument list too long." Here is a workaround which works pretty well: find . -type f -exec grep -n -C STRING '{}' ';' | less problem is, it doesn't display the name of the file. Can this be adjusted to do so? Thanks!
- Follow-Ups:
- Re: grep resistance
- From: Jonathan Q <jq@example.com>
- Re: grep resistance
- From: Fredric Fredricson <fredric.fredriksson@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Lawson Of Japan To Install 15,000 Linux Terminals
- Next by Date: Re: Linux distributions
- Prev by thread: Re: Encrypted PDF
- Next by thread: Re: grep resistance
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links