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

Re: searching inside files with find, cat and grep as a oneliner ...



> if you need certain extension, you don't even need cat and find, it's all about grep:

> $ grep 'string' *.extension
~
 The thing is that I need to know in which file the pattern was found
and as you guys suggested:
~
$ find -name '*.extension' -exec grep -H 'pattern' {} \;
~
 does it
~
 Thanks
 lbrtchx


Reply to: