how to search for a term only in non test files
Posted
by dorelal
on Stack Overflow
See other posts from Stack Overflow
or by dorelal
Published on 2010-06-09T20:37:21Z
Indexed on
2010/06/09
20:42 UTC
Read the original article
Hit count: 149
shell
|command-line
I use ack and I like it.
However from time to time I need to search for something in my code base and I want to ignore all the files residing in test directory. Basically all the files which have test in their absolute path should be not included in the search.
How do I achieve that?
I am willing to have a custom bash script. Something like
ack_no_test "application" -> search for "application" in all files but ignore files residing in test directory
© Stack Overflow or respective owner