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
I can't test it with the -A and -B parameters so I can't say for sure but you could try using sed G as mentioned here on Unix StackEx. You'll loose coloring though if that's important.