Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-18-2006, 03:23 AM   #1
Registered: May 2006
Posts: 55

Rep: Reputation: 15
Exclamation diffrence between grep, sed, awk and egrep

Whais the difference between grep, sed, awk and egrep commands?
Old 08-18-2006, 03:27 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
grep and egrep are search tools, egrep with a more complex set of regular expressions.
sed is a stream editor, it's meant for on-the-fly replacement of text.
awk is pretty much a small programming language that revolves around text processing
and combines features of all of the above and more.

Old 08-18-2006, 08:54 AM   #3
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
and usually the text man prefixxing any commands or things gives its manual (if manual is present try :-
man grep
man egrep etc in console and see
Old 08-18-2006, 09:15 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Go to and download the Bash Scripting Guide: "Bash Guide for Beginners" by Machtelt Garrels. Very good intro to all such things.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grep/egrep logical AND function? boozer_2 Linux - Newbie 11 04-10-2010 02:19 AM
bash script with grep and sed: sed getting filenames from grep odysseus.lost Programming 1 07-17-2006 12:36 PM
egrep/grep regex question buldir Programming 7 05-08-2006 08:17 PM
How can I awk/sed/grep the IPs from the maillog? abefroman Programming 7 03-09-2006 11:22 AM
Using Grep and Egrep linux-nerd Linux - General 5 10-10-2004 12:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration