Bearbeiten von „Projekt dgrep“
Zur Navigation springen
Zur Suche springen
Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden.
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 7: | Zeile 7: | ||
== Beschreibung == | == Beschreibung == | ||
<pre>Usage: dgrep [<options>] <pattern> | <pre>Usage: dgrep [<options>] <pattern> <file1> [<file2>] .. | ||
Searches <pattern> in <file1> <file2>... | Searches <pattern> in <file1> <file2>... | ||
<fileN>: a | <fileN>: a filename pattern or a directory, e.g. "/opt" "opt/*.txt" "*.doc" | ||
Examples: | |||
dgrep -r "version.*2" | |||
dgrep -V2 -i -r "happy|lucky" "*.txt" "--excluded=test.*" "--excluded-dirs=.git|.config" | |||
<option>: | <option>: | ||
-c, --count Show only the count of lines with hits (per file) | -c, --count Show only the count of lines with hits (per file) | ||
Zeile 17: | Zeile 19: | ||
--process-binaries Normally binary files will not be processed | --process-binaries Normally binary files will not be processed | ||
-h, --help Show the command description | -h, --help Show the command description | ||
-H, --hits Show only the number of hits (per file): a line can contain many hits | |||
-l, --list Show the filename only, not the matching lines | -l, --list Show the filename only, not the matching lines | ||
-r, --recursive Searches in all sub directories too | -r, --recursive Searches in all sub directories too |