BartlebyScrivener wrote:
grep -R 'the' * | (of=""; while read f l ; do if [ "$f" != "$of" ] ; then echo ; fi; echo $f $l ; of=$f; done)On Jul 15, 2:30 pm, Ron Johnson <ron.l.john...@cox.net> wrote:Try this. It's untested but should nudge you in the right direction.Almost, it prints each word on a separate line, but I'll pursue the idea. Thank you, rd
will put a linebreak after every new filename, as long the none of the filenames have spaces in.