by BiteCode_dev · 6y ago · 0 comments
Sure you can code anything with it, but there is always another language that will be better at this other thing, and still decent at what awk does. Awk looks more like a DSL than a generalist language.
So why learn awk to save you a few minutes for the rare cases you do need it? Just learn Python/Ruby/etc, it's a better investment, and it has a better crossplateform story.
If you're working on any kind of Unix, it's a niche that you encounter almost constantly.
> Awk looks more like a DSL than a generalist language.
Yes, it is pretty much the ultimate text processing DSL. So if you need to process a text file a line at a time, in most cases AWK is the optimal solution.
> and it has a better crossplateform story.
I think AWK is available on almost every platform where you can install those languages?
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/a...