3 ms·
If you already know it, then yes, it's still handy sometimes. And it's a small language, unlike Perl. OTOH I'm not sure I'd recommend bothering to learn it. Py
by abecedarius 9y ago
If you already know it, then yes, it's still handy sometimes. And it's a small language, unlike Perl.
OTOH I'm not sure I'd recommend bothering to learn it. Python is more verbose in Awk's domain, but not by so much as makes a huge difference, except at the scale of one-liners. (Or a-few-liners, at least.)
Another reason to learn it: the AWK book (by Aho, Kernighan, and Weinberger) is a great very short intro to the spirit of Unix-style coding. You could think of learning Awk as just the price of admission to that intro, paid along the way.
I wrote plenty of Awk in the 90s -- https://github.com/darius/awklisp https://github.com/darius/awklisp isn't very representative but it was fun.