Düzenli ifadeler (Regex) kullanarak dosyalardaki kalıpları bul. Daha fazla bilgi için: https://www.gnu.org/software/grep/manual/grep.html.
grep "{{aranan_kalıp}}" {{dosya/yolu}}
grep --fixed-strings "{{tam_dize}}" {{dosya/yolu}}
grep --recursive --line-number --binary-files={{without-match}} "{{aranan_kalıp}}" {{dosya/yolu}}
?
, +
, {}
, ()
ve |
destekler) kullan:grep --extended-regexp --ignore-case "{{aranan_kalıp}}" {{dosya/yolu}}
grep --{{context|before-context|after-context}}={{3}} "{{aranan_kalıp}}" {{dosya/yolu}}
grep --with-filename --line-number --color=always "{{aranan_kalıp}}" {{dosya/yolu}}
grep --only-matching "{{aranan_kalıp}}" {{dosya/yolu}}
stdin
'de arama yap:cat {{dosya/yolu}} | grep --invert-match "{{aranan_kalıp}}"