News for hackers. Stuff that matters.
Re:Awk in 20 Minutes (2015) by forinti on Saturday May 02, 2020 @05:43AM (#23050601)
On the other hand, Perl is a lot faster.

One small test (with a big file) I executed took 1 minute with Perl and 20 minutes with awk.

And then there are those really complicated formats where awk is just not flexible enough.

Awk is really useful, but it doesn't cover the same problem set as Perl does.

Re:Awk in 20 Minutes (2015) by dan-robertson on Saturday May 02, 2020 @11:49AM (#23052412)
I’m a bit surprised by this. It surely depends on the use case. I tend to use awk for the same reasons as the parent (smaller to write and remember) and that the pattern-action structure works really nicely once you get used to it.
Re:Awk in 20 Minutes (2015) by yiyus on Saturday May 02, 2020 @01:40PM (#23053462)
That depends on what you are doing. Which test did you run?

Around 10 years ago I rewrote markdown.pl in awk and it was almost 20 times faster. The speedup came from both a much faster startup time and a much faster (albeit simpler) regexp implementation.

Re:Awk in 20 Minutes (2015) by DmitryOlshansky on Saturday May 02, 2020 @02:12PM (#23053700)
There are many AWK implementations, OSX I think have subpar AWK. GAWK was fast, last time checked.
Re:Awk in 20 Minutes (2015) by unhammer on Saturday May 02, 2020 @03:18PM (#23054178)
what script, and which awk?