(cd ~/Work/mse1/compiler; ack -G 'rel*' --invert-file-match --type=cc -- "builtin_object_size" )
YMMV. No warranties expressed or implied. Thank god for undocumented/lightly documented features... ;-)
Cheers,
Connie
----------------------------------------
Stack Overflow:
"
How do I ignore specific directories via RegEx with ack?
I can use the
--ignore-dir option, but this does not let me specify a RegEx. I want to be able to ignore any directory, which has the words test or tests or more complicated patterns in its name.
I also tried a negative lookbehind via
but this does not work. It does not exclude the
test directories.
| ||
feedback
|
7
|
Use the undocumented option "--invert-file-match" (ack version on my system: 1.96):
Well, it is sort of documented:
It is not documented in its perldoc.
|
ack: Exclude specific directories from search via regex - Stack Overflow
'via Blog this'
No comments:
Post a Comment