Download your favorite Linux distribution at LQ ISO.
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, 02: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, 02:27 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,041
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
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, 07: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, 08:15 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
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 01:19 AM
bash script with grep and sed: sed getting filenames from grep odysseus.lost Programming 1 07-17-2006 11:36 AM
egrep/grep regex question buldir Programming 7 05-08-2006 07:17 PM
How can I awk/sed/grep the IPs from the maillog? abefroman Programming 7 03-09-2006 10:22 AM
Using Grep and Egrep linux-nerd Linux - General 5 10-10-2004 11:37 AM

All times are GMT -5. The time now is 02:33 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