Hacker News new | past | comments | ask | show | jobs | submit login
Famous Awk One-Liners Explained, Part II (catonmat.net)
18 points by twampss on Dec 13, 2008 | hide | past | favorite | 4 comments



Awk is one of my favourite software tool language, but some of these one-liner scripts can be done better with sed and tr.


Yep, some of them can be done much better with sed and tr.

The goal of this article, however, was not to illustrate the best practices but to document all Awk one-liners in awk1line.txt file.


It left me wondering why people think that file is so great.


Because books do not teach writing concise scripts, they would expand on multi-line functions, etc.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: