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

Re: Search for string in files



On Saturday 25 August 2007 14:34, Johannes Tax wrote:
> On [Sat, 25.08.2007 13:15], Mike Bird wrote:
> > grep -l 'a_certain_function' $(find . -name '*.c')
>
> That's exactly what I need. It also shows that I have to investigate the
> grep command a little bit further ...

BTW, unlike backquote, dollar-paren nests.  If you need
to edit those files with e.g. emacs you can:

emacs $(grep -l 'a_certain_function' $(find . -name '*.c'))

--Mike Bird



Reply to: