Miles asked
> How would I go about searching for an occurrence of a word in a folder
> with multiple subdirs, and have it search those subdirs recursively for
> the word as well? There isn't any '-R' flag or the like for grep, is there
> (a la cp -R or cmod -R)?
No, there isn't, but in the true Unix spirit, you glue multiple tools together to
do a job. In this particular case, you would do
grep target `find . -print`
Kindest regards,
Niall O Broin
UNIX Network Administrator nobroin at esoc.esa.de
Ground Systems Engineering Department Ph./Fax +49 6151 90 3619/2179
European Space Operations Centre, Darmstadt, Germany
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!