bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Fred .Flintstone
Subject: bug#45432: Use both --include and --exclude at the same time
Date: Thu, 7 Jan 2021 13:58:42 +0100

Thanks!

I didn't know about the --exclude-dir option.

On Thu, Jan 7, 2021 at 7:16 AM Paul Eggert <eggert@cs.ucla.edu> 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, and exclude certain directories
> > such as directories containing unit tests and integration tests.
>
> grep -r --include='*.cs' --exclude-dir='tests' PATTERN DIR
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]