Linux/UNIX Awk Command Tutorial with Examples

5 Responses

  1. sudeep says:

    this is really nice tutorial,
    i was searching for something.
    which i got it here.
    thanks

  2. Sanders says:

    Well, this tutorial, looks like a collection of awk one-liners than a tutorial.

  3. Ashish Durgapal says:

    Thanx for such a nice and simple tutorial for beginners.

  4. Rashmi says:

    Example 7,8,9 are not working on my putty..can you please help?

  5. GWShark says:

    The reason some of the awk scripts are not wrung is the following

    Original statement:
    awk -F, ‘{a[$1];}END{for (i in a)print i;}’ awkfile.txt

    Correction Statement:
    awk -F, ‘{a[$1];}END{for (i in a)print i;}’ awkfile.txt

    The difference is.
    Original:
    ‘{a[$1];}END{for (i in a)print i;}’

    Correction:
    ‘{a[$1];}END{for (i in a)print i;}’

    Note the quotes.

Leave a Reply

Your email address will not be published. Required fields are marked *