Unix/Linux Go Back    


UNIX Desktop Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

Difference grep, egrep and fgrep

UNIX Desktop Questions & Answers


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-06-2007
ravind27 ravind27 is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 6 March 2008, 9:06 PM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 07-06-2007
ennstate's Unix or Linux Image
ennstate ennstate is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 1 January 2015, 1:39 PM EST
Location: Stockholm
Posts: 230
Thanks: 1
Thanked 4 Times in 4 Posts
See man page

Code:
man grep fgrep egrep

Sponsored Links
    #3  
Old Unix and Linux 06-14-2009
jagadeeb jagadeeb is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 9 June 2011, 3:00 PM EDT
Posts: 1
Thanks: 1
Thanked 2 Times in 1 Post
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.
The Following 2 Users Say Thank You to jagadeeb For This Useful Post:
kpearson (02-07-2012), Landis (01-27-2013)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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
Difference between grep, egrep & grep -i divroro12 UNIX for Dummies Questions & Answers 2 01-21-2010 11:47 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



All times are GMT -4. The time now is 01:54 AM.