by FPGAhacker · 4y ago · 0 comments
I suppose that is subjective, but I think this is terrible code.
The fact that someone had to write a lengthy blogpost to figure out what it was doing should be an obvious warning against it.
Write code for readability / comprehensibility.
In this case, once you realize how the defaults stack, whoever came up with the one liner indeed has come up with something clever. Also the exercise in understanding the defaults cements the understanding of awk and as others have pointed out enables you to write much cleaner awk.