Settings

Theme

The Awk Programming Language, Second Edition

awk.dev

37 points by gits1225 2 years ago · 11 comments

Reader

andrewstuart 2 years ago

awk is a weirdly appealing and powerful language - if you do much text processing then it can be a real help.

It's one of those tools that benefits hugely from ChatGPT because every single thing you want to do requires looking thing up and working things out. ChatGPT really complements awk well.

arp242 2 years ago

The Awk Programming Language, Second Edition - https://news.ycombinator.com/item?id=36517525 - Jun 2023 (158 comments)

bosch_mind 2 years ago

For any folks who appreciate old UNIX things, check out Unix a history and memoir. It’s written by the one and only - Kernighan and he talks about people like Aho. Awesome book

shric 2 years ago

That page, unless I missed it, doesn't say who worked on the updated edition. Was it the original authors?

  • alpinisme 2 years ago

    The preface ends with the original authors names, so yes, I’d say they are behind the new edition.

    Kernighan also lists the updated edition at the top of his web page

jmfldn 2 years ago

Yes! Going to order my copy soon. Great to see these classic tools evolving and hopefully winning new fans from up to date resources like this.

zerr 2 years ago

Did the popularity of AWK demise after Perl became ubiquitous?

  • rjh29 2 years ago

    Prior to Perl most text processing was done with unix pipelines and awk/sed/C. So Perl allowed people to stop writing C and also stop using lots of separate programs to do one thing. Many of the awk constructs survive in Perl such as running code once per line, // for regular expressions which implicitly work on the current line, $1/$2/$3 etc. so it's not too difficult to use Perl instead of awk.

  • coldtea 2 years ago

    Awk was always a tool for use in shell scripts and one liners, and is still going strong.

    Perl, not so much.

    • rjh29 2 years ago

      Perl for one-liners is extremely common. It was built with that in mind.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection