[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: format grep ouput



On Jul 16, 5:00 pm, William Pursell <bill.purs...@gmail.com> wrote:

> The following works with filenames with spaces.  It
> displays the filename after the text match, though.
>
> find . -type f -name "*$1" -exec sh -c "grep --color -i $2 '{}' && \
>          echo '**** echo {}' && echo" \;
>

That works like a charm. Thanks a lot.

rd



Reply to: