linux-l: Über ganze Verzeichnisse grepen
Ralf Baerwaldt
rade at rade2.bancos.com
Mi Okt 21 10:38:11 CEST 1998
> find /wo/du/suchen/willst/ -exec grep suchbegriff /dev/null {} \;
ich wuerde noch ein "-type f" und ein "-follow" einbauen, damit er
nur wirkliche Files untersucht und auch gelinkte Verzeichnisse
anschaut. Allerdings werden bei "type f" gelinkte Files uebersprungen.
find pfad -follow -type f -exec grep suchbegriff /dev/null {} \;
Ralf Baerwaldt
(e-mail: rade at bancos.com)
Mehr Informationen über die Mailingliste linux-l