my dog learned polymorphism*
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
Author

Difference Between Grep,Fgrep & Egrep

Nagarajan Krishnamurthy
Greenhorn

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

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.

Francis


<a href="http://www.shillitoe.com" target="_blank" rel="nofollow">http://www.shillitoe.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference Between Grep,Fgrep & Egrep