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: Paul Eggert
Subject: bug#45432: Use both --include and --exclude at the same time
Date: Wed, 6 Jan 2021 22:16:41 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

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]