for zgrep how do I limit per pattern and not the entire match?
I have a file that has about 1000 patterns to match. For each pattern I want to limit for each pattern however when I use the -m option it will find the first 10 and stop. Is there a way to do this in an equivalent or speedier way?
bash grep and substitute text when result is empty
I am attempting to grep an inbox for survey results, in which the subject will include the answer to the following question:
“The answer to your question is ___”