grep - How can I tell ack to search in two distinct directories? -
is possible ask ack
search , include results multiple root directories, rather searching current shell working directory?
yes, can specify number of files or directories want search.
look @ first line of ack --help
.
usage: ack [option]... pattern [files or directories]
(the ack manpage has similar usage statement)
so can do
ack needle this_haystack/ that/haystack/ other/haystack*.txt
Comments
Post a Comment