💾 Archived View for freeshell.de › tldr › egrep.gmi captured on 2023-01-29 at 04:43:40. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()` and `|`).
egrep "{search_pattern}" {path/to/file}
egrep "{search_pattern}" {path/to/file1} {path/to/file2} {path/to/file3}
cat {path/to/file} | egrep {search_pattern}
egrep --with-filename --line-number "{search_pattern}" {path/to/file}
egrep --recursive --binary-files={without-match} "{search_pattern}" {path/to/directory}
egrep --invert-match "{search_pattern}" {path/to/file}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).