Hacker News new | ask | show | jobs
by throwawayboise 1506 days ago
Yep, was going to post the same if someone hadn't already. This is the unix way. Small tools with narrow focus, strung together in pipelines.
3 comments

ah yes, awk's famously narrow focus, covering things such as networking (https://www.gnu.org/software/gawk/manual/html_node/TCP_002fI...) or video games (https://github.com/mikkun/AWKTC). What do you mean your blog isn't served by awk (https://www.gnu.org/software/gawk/manual/gawkinet/html_node/...) as a VRML world (https://www.gnu.org/software/gawk/manual/gawkinet/html_node/...) ?
>> This is the unix way. Small tools with narrow focus, strung together in pipelines.

> ah yes, awk's famously narrow focus, [...]

"GNU's Not Unix"

And GNU is what most people rush for installing on macOS and Windows which says a lot about the actual needs of people Vs the supposed benefits of Unix purism
I think getting awk to recognize that a field separator within a quoted string should be ignored is a great addition. This is not inconsistent with the "unix way." Many, many unix tools recognize that a quoted string should be treated as a separate entity. The more unix-like approach would have been to force users to remove quotes if they want awk to split strings based on field separators within quotes. In hindsight, I'm surprised the quote respecting option wasn't added a long time ago.
awk is a tool for handling records in text. csv is a textual format for records.

I'd argue that needing a different tool for handling records in text so that you can pass it to a tool for handling records in text is a bit too far.