BartlebyScrivener wrote:
I'm playing with recursive grep. Still fairly new to Etch.

When I grep text files and get a dozen or so results, they print to
the screen as a dense block of text.  I found the color option, which
helps, but is there a way to separate each result with a blank line,
or highlight the file name or something?

I know some Python if I have to pipe it to a Python script.  But I'm
thinking there's some easy pipe I could using just bash and Linux
commands, as this must be a common probelm.

Thanks

rd



To just add a blank line between each output line from grep, do:

  grep ... ... | sed 's/$/\n/'

This will add a "spurious" extra blank line after the last line of output, rather than just between lines of output, but it's quick and easy. ;-)

--
Bob McGowan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to