I recommend "The AWK Programming Language" by Aho, Kernighan, and Weinberger, though it seems to be listed for a hilariously high price on Amazon at the moment. Maybe try to pick up a used copy.
I recommend "The AWK Programming Language" by Aho, Kernighan, and Weinberger, though it seems to be listed for a hilariously high price on Amazon at the moment. Maybe try to pick up a used copy.
I concur with this recommendation. "The AWK Programming Language", at little over 100 pages, is a classic of programming language instruction. The book jumps right into use cases, it does not waste one's time. This book should be required reading for anyone contemplating writing a handbook on any programming language; my CS bookshelf would be several feet thinner and several times more informative.
It's the first result for me.
http://www.cs.princeton.edu/courses/archive/spr08/cos333/awk...
It deals with things he forgets or needs to remind himself of.
If you're interested in his other personal tutorials, they are here:
http://www.cs.princeton.edu/courses/archive/spr08/cos333/tut...
When Perl was created, one of its advertised goal was to avoid all the time lost trying to work around the limitations of awk, sed and shell.
By the way: what people need to understand is that in order to use Awk, efficently, you'll either use associative arrays, or structure your script like a sed script, otherwise it will be slow. The interesting thing about both of those, is the regex algorithm Thompson NFA, that is from what I hear around 7 times faster than PCRE that is used in Perl, PHP, Python and Ruby?
http://linuxgazette.net/67/nazario.html
i still use a buttload of awk for data science type uses.