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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -