How do you use ack
to search for a file that contains, for example,
- cat
- dog
- mouse
anywhere in the file? Each phrase occur at least once in the file.
This is kind of like the behavior of an online search engine.
Bonus:
- Can we use regex on those individual phrase as well?
- Or perhaps declare at least how many times a phrase must occur?