I am grepping for terms like this:
grep 'term1\|term2\|term3\|term4'
and I want to say, for all lines which are found, cap the results to 100 characters. I found some examples how to do this when searching for one term, but none accommodating the OR-ing of search terms.
Try this with GNU grep: