Hi,
It seems --exclude does nothing when --include is used. It would be useful
to be able to use both together, in order to do things such as recusively
grepping files of a certain file extension while excluding certain
directories.
Example:
$ grep --recursive --include="*.cs" --exclude="*/tests/
-0800
> Jim Meyering wrote:
>
> > tags 45432 moreinfo
> > stop
> >
> > On Fri, Dec 25, 2020 at 8:57 AM Fred .Flintstone
> wrote:
> > > It seems --exclude does nothing when --include is used. It would be
> useful
> > > to be able to u
Thanks!
I didn't know about the --exclude-dir option.
On Thu, Jan 7, 2021 at 7:16 AM Paul Eggert wrote:
> On 1/6/21 12:12 PM, Fred .Flintstone wrote:
> > Yes, I meant like Tanaka said, I want BOTH to include AND exclude.
> > So I can include only a file extension,