Oscar Godson
Oscar Godson

Reputation: 32716

With ack (or something similar), how do I exclude sub-directories

For example:

-- /
---- foo
------ exclude-me
----  bar
------ exclude-me
---- baz
------ exclude-me

How could I search all foo, bar, and baz, BUT exclude any sub-directory with exclude-me?

Upvotes: 1

Views: 300

Answers (1)

Anton Kovalenko
Anton Kovalenko

Reputation: 21507

For ack, you use case is covered with --ignore-dir=exclude-me (excluding by plain directory name only).

For something similar, I would try some similar approach after browsing some manual for some time.

Upvotes: 3

Related Questions