egrep
Vind patronen in bestanden door gebruik te maken van uitgebreidere reguliere expressies (ondersteund
?
,+
,{}
,()
en|
). Meer informatie: https://manned.org/egrep.
egrep "{{zoekpatroon}}" {{pad/naar/bestand}}
egrep "{{zoekpatroon}}" {{pad/naar/bestand1 pad/naar/bestand2 ...}}
stdin
naar een patroon:cat {{pad/naar/bestand}} | egrep {{zoekpatroon}}
egrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{zoekpatroon}}" {{pad/naar/bestand}}
egrep {{[-r|--recursive]}} --binary-files={{without-match}} "{{zoekpatroon}}" {{pad/naar/map}}
egrep {{[-v|--invert-match]}} "{{zoekpatroon}}" {{pad/naar/bestand}}