Re:Minimal safe Bash script template
by jrochkind1 on Tuesday December 15, 2020 @09:20AM
(#25430523)
But... neither is bash. I am sympathetic to the argument that awk is theoretically superior to bash in almost all ways (and it is of course nearly as available as bash). But... something still makes me reluctant to switch to using it in the cases I write a bash script (which I'm already trying to minimize, as is the OP). I'm not really sure why though.
(Fun-for-mostly-me fact, my very first programming job ever was writing awk. It was a while ago. I certainly don't remember any awk now).
If you expect that someone else can read and maintain your code with minimal learning I don't think it's the tool of choice.