Hacker News new | past | comments | ask | show | jobs | submit login
The Unreasonable Effectiveness of AWK (stephenramsay.net)
31 points by benhoyt on Jan 16, 2023 | hide | past | favorite | 6 comments



I've done a lot of prototyping with AWK, and as with all good prototypes, a lot of them lingered in production for years without so much as a glitch.

I also did the entire 2020 AoC in mainly AWK, with some help of the shell at large at points.

I don't really have a point to make other than showing my appreciation of this quirky tool.


I realize the author was probably using the term "unreasonable" for literary effect.

But it's not unreasonable at all. Aho of the "Dragon Book", Weinberger of Bell Labs, and of course Brian Kernighan of K&R.

One would expect nothing less, really and they did not disappoint.


The authors themselves were astonished to see what their language could do in the hands of other programmers.


That literary effect works these days, unreasonably well unfortunately.

How about "AWK is Still Effective". I'd still click on that.


Stephen Ramsey is an interesting geek! "[A]n Associate Professor of English and a Fellow at the Center for Digital Research in the Humanities". He's an English major all the way to PhD. The title of one of his books proved sufficiently tantalizing to motivate a search:

Reading Machines: Toward an Algorithmic Criticism, 2011:

http://www.dansinykin.com/uploads/8/4/0/2/84026824/ramsay_al...


    We’re not creating file handles and opening files (or closing them)
In the past I've had to write awk scripts that explicitly close files since it's quite easy to run out of file descriptors/reach an awk imposed limit.




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

Search: