unix question: find a file containing a word in a file structure
Respostas da entrevista
Sigiloso
3 de jul. de 2010
find ./ -exec grep word \; -print
Sigiloso
26 de jul. de 2010
I would simply do this with
find /path | grep word
1
Sigiloso
27 de jul. de 2010
That's the answer to a different question. The question is find the word in the file not in the filename. The original was correct except for a mistake. It should be
find./ -exec grep word {} \;