Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference Between Grep,Fgrep & Egrep

 
Nagarajan Krishnamurthy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am totally confused with these commands.
I need the differences between the commands Grep,Fgrep & Egrep
 
Francis Shillitoe
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic