4 ms·
As others here pointed out: this is bad awk. I think good awk scripts lie somewhere between "This is atrociously overfit to this file" and "this is so general
by lugao 4y ago
As others here pointed out: this is bad awk.
I think good awk scripts lie somewhere between "This is atrociously overfit to this file" and "this is so general you should have done it in python/perl/etc".
Of course there are legitimate uses for both super-specific and super-general awk scripts, but finding the right compromise is what makes a good awk script. You want your script to be concise yet robust to changes in the input files. Also, readability and maintainability are really important if you plan to add it to an important script.
Short awk != good awk.