Difference grep, egrep and fgrep


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-06-2007
Difference grep, egrep and fgrep

Hi All,

Can anyone please explain me the difference between grep, egrep and fgrep with examples.

I am new to unix environment.. Your help is highly appreciated.

Regards,
ravi
# 3  
Old 06-14-2009
MySQL grep,egrep,fgrep

gerp Search a Pa tern from current directory.

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.
These 2 Users Gave Thanks to jagadeeb For This Post:
kpearson (02-07-2012) Landis (01-27-2013)
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Need to use fgrep and egrep in a single command gotamp UNIX for Advanced & Expert Users 5 01-07-2016 02:36 PM
Fgrep/grep -f and literal strings ampsys Shell Programming and Scripting 1 02-17-2014 03:27 PM
grep/egrep fails with $ anchor? CRGreathouse Shell Programming and Scripting 2 01-09-2011 10:49 PM
grep and egrep ninjagod123 Homework & Coursework Questions 1 10-18-2010 06:50 AM
egrep / grep login name , logindate from xml crux123 UNIX for Dummies Questions & Answers 2 08-13-2010 02:23 AM
Using grep or egrep SkySmart Shell Programming and Scripting 3 07-14-2010 03:49 PM
grep/fgrep/egrep for a very large matrix realwindfly Shell Programming and Scripting 1 05-20-2010 07:37 AM
Fgrep or grep or awk help - scanning for delimiters. Tbox Shell Programming and Scripting 8 03-07-2010 08:38 AM
How to grep/awk/egrep two values for given output? baluchen Shell Programming and Scripting 2 02-15-2010 02:44 AM
Difference between grep, egrep & grep -i divroro12 UNIX for Dummies Questions & Answers 2 01-21-2010 11:47 AM
Ecaping a line feed in grep/egrep Enobarbus37 Shell Programming and Scripting 1 05-20-2009 01:20 PM
grep/egrep end of pattern domi55 Shell Programming and Scripting 12 05-13-2009 03:43 PM
egrep/grep result of more files tvrman Shell Programming and Scripting 3 08-07-2008 08:29 AM
grep/awk/egrep? whugo UNIX for Dummies Questions & Answers 3 01-19-2006 11:51 PM
I need help with fgrep or grep jimmy UNIX for Dummies Questions & Answers 7 11-21-2001 12:13 PM