Hacker News new | past | comments | ask | show | jobs | submit login

I'm a bit upset to say that this is one of the few times I've seen AWK code outside of a one liner (some of those one liners are pretty beastly, but still).

It reads pretty well, and now I'm interested in using it a bit more for my scripts. Any good AWK examples/resources anyone can recommend?




The AWK book written by the A W K from the program name has always been considered the bible.

Edit: misattributed to k&r


This one is good; clear explanations of the concepts and various useful examples to crib from: https://www.grymoire.com/Unix/Awk.html

Their document covering sed is also excellent.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: