[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: File naming conventions
From: |
Zenaan Harkness |
Subject: |
Re: [Gnu-arch-users] Re: File naming conventions |
Date: |
Tue, 19 Oct 2004 15:29:31 +1000 |
On Tue, 2004-10-19 at 15:25, John Meinel wrote:
> Zenaan Harkness wrote:
> >>Actually, I really wish grep had the workaround, because otherwise I
> >>have to do this little hack:
> >>
> >>grep -rn "what I want" * | grep -v "{arch}/"
> >>
> >>which means it still has to grep all of those files, it just doesn't
> >>tell me about it.
> >
> >
> > So reverse your greps.
> >
>
> That doesn't actually work. Because the final grep is actually greping
> out the filename given by the first grep, not the text in the file.
> Something that might work is:
>
> $ find . ! -path "*arch*" -print0 | xargs -0 -n50 grep -rn "what I want"
find . | grep -v *arch* | xargs grep -n "blah"
?doesn't that do basically what you want?
(don't know how the -print0 fits into that one though)
cheers
zen
- Re: [Gnu-arch-users] Re: File naming conventions, (continued)
- Re: [Gnu-arch-users] Re: File naming conventions, Miles Bader, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Dustin Sallings, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, John Meinel, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Miles Bader, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Zenaan Harkness, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions, Dustin Sallings, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions, Zenaan Harkness, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions, John Meinel, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions, Zenaan Harkness, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions, John Meinel, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions,
Zenaan Harkness <=
- Re: [Gnu-arch-users] Re: File naming conventions, Miles Bader, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, John Meinel, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Dustin Sallings, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Miles Bader, 2004/10/18
- Message not available
- Re: [Gnu-arch-users] Re: File naming conventions, Miles Bader, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Miles Bader, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Dustin Sallings, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Zenaan Harkness, 2004/10/19
- Re: [Gnu-arch-users] Re: File naming conventions, Dustin Sallings, 2004/10/18
- Re: [Gnu-arch-users] Re: File naming conventions, Zenaan Harkness, 2004/10/19