Re:Minimal safe Bash script template
by munificent on Tuesday December 15, 2020 @05:04PM
(#25435815)
> It's a far simpler language than Python really.
This is true, but if you already know Python, then "awk + Python" has greater total complexity than "just Python". So the question is does awk add enough value to be worth the incremental cost of learning it in addition to Python? I think for many, the answer is "no".
Honestly I think if someone finds awk unreadable, they're probably cutting corners elsewhere and probably shouldn't be doing unix systems programming.
It's like all of the bash scripts that we see that don't handle failures and traps or print a usage block.
I actually find awk very readable. It's a far simpler language than Python really.
The exception is perhaps if you need to do something complex, like parse a csv.