Code:
find /home/username -name '*.xml' -exec grep '<start>' {} +
If your find does not support the + syntax, try this:
Code:
find /home/username -name '*.xml'|xargs grep '<start>'
It should be more efficient than:
Code:
find /home/username -name '*.xml' -exec grep '<start>' {} \; -print
But you should modify it if the filenames contain spaces or other pathological characters.
|