fgrep,grep and egrep
Pete Vander Giessen
petevg at gmail.com
Tue Jun 8 17:27:23 UTC 2010
On Tue, Jun 8, 2010 at 9:39 AM, Kaushal Shriyan
<kaushalshriyan at gmail.com> wrote:
> Hi,
> can someone explain me about the usage of grep , fgrep and egrep
> with examples.
> In what contexts i should use which.
The short of it is that egrep allows you to use extended regular
expressions to specify your search string, and fgrep allows you to
search for multiple strings.
If you don't know what regular expressions are, or don't have a reason
to search for multiple strings within a file, simply use grep.
For more details, type "man grep" in a terminal, which will pull up
the grep manual. (Google searches are usually enlightening, as well.)
~ PeteVG
More information about the ubuntu-users
mailing list