grepZoek patronen in bestanden met behulp van
regexen. Zie ook:regex. Meer informatie: https://www.gnu.org/software/grep/manual/grep.html.
grep "{{zoekpatroon}}" {{pad/naar/bestand1 pad/naar/bestand2 ...}}
regex uit):grep {{[-F|--fixed-strings]}} "{{exacte_string}}" {{pad/naar/bestand}}
grep {{[-rI|--recursive --binary-files=without-match]}} "{{zoekpatroon}}" {{pad/naar/map}}
grep {{--context|--before-context|--after-context}} 3 "{{zoekpatroon}}" {{pad/naar/bestand}}
grep {{[-Hn|--with-filename --line-number]}} --color=always "{{zoekpatroon}}" {{pad/naar/bestand}}
grep {{[-o|--only-matching]}} "{{zoekpatroon}}" {{pad/naar/bestand}}
stdin en toon niet de regels die overeenkomen met een patroon:cat {{pad/naar/bestand}} | grep {{[-v|--invert-match]}} "{{zoekpatroon}}"
regexen (ondersteunt ?, +, {}, () en |), in hoofdletterongevoelige modus:grep {{[-Ei|--extended-regexp --ignore-case]}} "{{zoekpatroon}}" {{pad/naar/bestand}}