Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:
-- / ---- foo ------ exclude-me ---- bar ------ exclude-me ---- baz ------ exclude-me
我如何搜索所有foo,bar和baz, 但排除任何子目录exclude-me?
foo
bar
baz
exclude-me
对于 ack,您的用例被覆盖--ignore-dir=exclude-me(仅由普通目录名称除外)。
--ignore-dir=exclude-me
对于类似的事情,我会在浏览一些手册一段时间后尝试一些类似的方法。