my grep command looks like this zgrep -B bb -A aa \"pattern\" *
I would lke to have output as:
file1:line1 file1:line2 file1:line3 file1:pattern file
You can also use the --group-separator parameter, with an empty value, so it'd just add a new-line.
some-stream | grep --group-separator=