Awk and Sed examples

Hi all,
I tried to understand what this awk and sed does but cudnt understand.

Can any body explain what awk and sed means with one simple example each and complex examples each with explanation.

Thanks in advance.

Google should your best friend to answer this!!!
And you were not suppose to put it in emergency forum...

One of the best AWK pages that I've seen is Bruce Barnett's page for awk:

Awk - A Tutorial and Introduction - by Bruce Barnett

He also maintains an excellent page for sed:

Sed - An Introduction and Tutorial

Other good resources include:

The GNU Awk User's Guide (Man pages for GNU awk, assuming that you're using Linux, or have Linux packages installed)

sed, a stream editor

Happy hunting.

Of the many collections of "sed" examples this contains simple and complex examples which have practical uses. Not verified. Always test on expendable test data files.

sed one-liners

Hi.

If you would rather read from a book:

Title: sed & awk
Author: Dale Dougherty, Arnold Robbins
Edition: 2nd
Date: March 1997
Publisher: O'Reilly
ISBN: 1-56592-225-5
Pages: 432
Categories: text, editing, utilities, scripting, programming
Comments: http://www.oreilly.com/catalog/sed2/index.html
Comments: tarball examples: http://examples.oreilly.com/sed2/

Best wishes ... cheers, drl

sed = stream line editor ... Basically read a line/word/character and apply changes and send to screen STDOUT ( most of time).

awk = more of programming language can be easier to write compared to sed

if you are looking to answer an interview question then you need to practice a bit on each. or if you are writing one liner's .... try searching web.

Google it and you will find the correct asnwer!

Can't see any urgent matter in this - as some already said this is very very easy stuff you can google your own. Place something like this in a more appropriate subforum next time, ty. Thread closed.