یافتن الگو در فایل ها به کمک عبارات با قاعده. اطلاعات بیشتر: https://www.gnu.org/software/grep/manual/grep.html.
grep "{{search_pattern}}" {{path/to/file}}
grep --fixed-strings "{{exact_string}}" {{path/to/file}}
grep --recursive --line-number --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}
?
، +
، {}
، ()
و |
)، در حالت حساس به بزرگی کوچکی کاراکتر ها :grep --extended-regexp --ignore-case "{{search_pattern}}" {{path/to/file}}
grep --{{context|before-context|after-context}}={{3}} "{{search_pattern}}" {{path/to/file}}
grep --with-filename --line-number --color=always "{{search_pattern}}" {{path/to/file}}
grep --only-matching "{{search_pattern}}" {{path/to/file}}
cat {{path/to/file}} | grep --invert-match "{{search_pattern}}"