Quote:
Originally posted by alaios
find -exec grep --with-filename 'mystring' {} ;
find: missing argument to `-exec'
|
Don't forget to put the escape character, that is "\", before the ";".
Like this:
find -name '*mplampla*' -exec grep --with-filename 'mystring' {} \;
dominant is right; if you want to grep through all the files, egrep -R is the way to go. If you only want to search through some of the files, I think find is a good way to go.
Lyle