All Articles

The ABC's of grep - G

G

Use the -G flag to make your search pattern behave like a basic regular expression​. This is like a limited -e flag and probably not as useful in comparison.

The grep man pages says it forces “grep to behave as traditional grep”. This leads me to believe this was probably a flag to support backward compatibility.

Published Oct 31, 2023

I love coffee, coding and writing.