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
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?
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.
awk -- more specialized in calculations on lines of text files
sed (stream editor) is a Unix utility that parses text and implements a programming language which can apply transformations to such text.
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.