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
|
sed G
ls | sed G
man sed
G Append's a newline character followed by the contents of the hold space to the pattern space.
G