PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Wort in Datein durchsuchen lassen (Debian!)



verve
24.06.04, 20:13
HI@all,

suche nach einem bestimmten Wort in einer bestimmten Datei.

Bei SuSE Linux hat das immer mit:

cd /
fgrep -R hallo *

gut funktioniert, doch bei Debian kennt er das "-R" nicht :(
Wie heißt das bei Debian?

greetings
verve

alexm
24.06.04, 20:35
grep(1)

schau dir `which fgrep` an, das ist nur ein Script.


-F, --fixed-strings
Interpret PATTERN as a list of fixed strings, separated by new-
lines, any of which is to be matched.

-R, -r, --recursive
Read all files under each directory, recursively; this is equiv-
alent to the -d recurse option.