File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Difference Between Grep,Fgrep & Egrep Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Difference Between Grep,Fgrep & Egrep" Watch "Difference Between Grep,Fgrep & Egrep" New topic

Difference Between Grep,Fgrep & Egrep

Nagarajan Krishnamurthy

Joined: Sep 26, 2003
Posts: 20
Am totally confused with these commands.
I need the differences between the commands Grep,Fgrep & Egrep
Francis Shillitoe

Joined: Aug 30, 2002
Posts: 22
egrep (grep -E in linux) is extended grep where additional regular expression metacharacters have been added like +, ?, | and ()

fgrep (grep -F in linux) is fixed or fast grep and behaves as grep but does not recognise any regular expression metacharacters as being special.


<a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Difference Between Grep,Fgrep & Egrep
jQuery in Action, 3rd edition