bug#45432: Use both --include and --exclude at the same time

2020-12-25 Thread Fred .Flintstone
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/

bug#45432: Use both --include and --exclude at the same time

2021-01-06 Thread Fred .Flintstone
-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

bug#45432: Use both --include and --exclude at the same time

2021-01-07 Thread Fred .Flintstone
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,