awk sed commands in unix

I am not very clear about 'awk' and 'sed' used in unix. I would like to knoe what they do. how and where, when to use. Any ideas, sample code, resources, links highly appreciated. thanks in advance
LVL 7
gudii9Asked:
Who is Participating?
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Well, there's a lot to say about both, sed is a stream editor, used for processing lines. Awk is more complex, you can write complete programs that perform all kind if actions on input files.

What is your goal? Just learning or do you have a practical question?
0
 
farzanjCommented:
These are two separate programming languages that are specialized in file manipulation and especially their simple one line commands to do small tasks on files called one liners.

sed -- Stream EDitor is more specialized in applying simple regular expressions on files.
http://www.grymoire.com/Unix/Sed.html
awk -- more specialized in calculations on lines of text files
http://www.grymoire.com/Unix/Awk.html
0
 
ManjitkCommented:
sed (stream editor) is a Unix utility that parses text and implements a programming language which can apply transformations to such text.

http://docstore.mik.ua/orelly/unix/sedawk/index.htm
http://www.linuxfocus.org/English/September1999/article103.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.