
The GNU Awk User's Guide
by Arnold Robbins · first published 1996
6mentions
4recommended by
4HN commenters
2014–2020first – last mentioned
100% recommend
Affiliate links. As an Amazon Associate I earn from qualifying purchases.




I've heard about _The Awk Programming Language_ but could get my hands only on _The GNU Awk User's Guide_ by Arnold Robbins, since it's available as Info pages on my Linux box. It's also free online https://www.gnu.org/software/gawk/manual/gawk.html It's a pretty good book which teaches you both techniques…
on “Learn just a little Awk (2010)” ↗…and don't try to learn from the man page. I think the original book by A, W and K (the 2nd edition anyway) was best. Also Arnold Robbins' books Sed and Awk and Effective AWK Programming are great. The GNU Awk User's Guide[1] is amazingly detailed, but the new AWK has bloated a lot, has 1000 features where the older one had a few dozen, and those core ones should be learnt first. (But people still like programming with…
on “Problem solving with Unix commands” ↗While somewhat specific to GAWK, the GNU Awk User's Guide is excellent. http://www.gnu.org/software/gawk/manual/gawk.html
on “An Awk Primer” ↗GNU AWK User's Guide is reasonably succinct, while being fairly comprehensive. https://www.gnu.org/software/gawk/manual/gawk.html The manpage alone is quite useful, though lacks some useful details. The awk FAQ provides…
on “How to Clean Text Data at the Command Line” ↗…but should be generally accurate.) That parses records based on blank lines, into fields based on lines, splitting the fields into individual data recoreds based on ": " as a regex. For more, see the GNU Awk User's Guide: https://www.gnu.org/software/gawk/manual/html_node/Multiple-...
on “GNU Recutils” ↗I've discovered page-oriented processing in awk, which is a godsend for parsing PDFs. See: https://news.ycombinator.com/item?id=22156456 In the GNU Awk User's Guide: https://www.gnu.org/software/gawk/manual/html_node/Multiple-... Tracking column and field widths across page breaks is ... interesting, but more tractable.
on “What's so hard about PDF text extraction?” ↗