Learn to use Awk with hundreds of examples
There is also available the source code[1] of the original awk, "The One True Awk" as Brian Kernighan refers to it at his Princeton webpage.[1]http://www.cs.princeton.edu/~bwk/btl.mirror/