...

/

GREP vs. EGREP vs. FGREP

GREP vs. EGREP vs. FGREP

Search for a variety of text fragments through the most powerful commands of terminal i.e. grep, egrep and fgrep.

grep

Definition:

The command grep stands for “global regular expression print”, and is used to search for specified text patterns in files or program outputs.

Syntax:

grep [option(s)] pattern [file(s)]

Options:

Option Description
-E (extended regexp) Causes grep to behave like egrep.
-F (fixed strings) Causes grep to behave like fgrep.
-G (basic
...