Surprisingly relevant?
Surprisingly relevant?
Posted May 20, 2020 12:00 UTC (Wed) by neilbrown (subscriber, #359)In reply to: Surprisingly relevant? by NYKevin
Parent article: The state of the AWK
> What does bother me is when people write awk "{ print $1 }" instead of cut -f1. I find the latter more readable.
I'm a proud user of 'awk "{print $1}"' - maybe I don't care about readability, only write-ability.
A small extension to that (e.g., ignore lines starting '#') is easy within the same tool. A small extension to "cut -f1" requires a different tool.
Awk seems to be to be a good answer to the requirement "Simple things should be simple, complex things should be possible".