From: Niall O Broin (nobroin at domain sced.esoc.esa.de)
Date: Thu 26 Aug 1999 - 16:50:55 IST
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 domain esoc.esa.de
Ground Systems Engineering Department Ph./Fax +49 6151 90 3619/2179
European Space Operations Centre, Darmstadt, Germany
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:30 GMT