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

using find with grep



I have an expression that searches within files
of a particular type and displays the output.
But I would ALSO like it to display the directory
for each find occurence.
The command below works, but won't give me
the directory.

find /home -name *.txt -exec grep searchstring {} \;

Any help would be much appreciated,

-Rick




Reply to: