Re:Modernizing AWK, a 45-year old language, by adding CSV su...
by throwawayboise on Thursday May 12, 2022 @01:32PM
(#31357282)
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.
[ Parent
| on HN ]
Re:Modernizing AWK, a 45-year old language, by adding CSV su...
by jcelerier on Thursday May 12, 2022 @03:51PM
(#31359387)
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/...) ?
Re:Modernizing AWK, a 45-year old language, by adding CSV su...
by MonkeyClub on Thursday May 12, 2022 @04:28PM
(#31359785)
>> 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"
Re:Modernizing AWK, a 45-year old language, by adding CSV su...
by jcelerier on Friday May 13, 2022 @04:07AM
(#31364671)
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
Re:Modernizing AWK, a 45-year old language, by adding CSV su...
by dev_tty01 on Thursday May 12, 2022 @07:15PM
(#31361230)
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.
Re:Modernizing AWK, a 45-year old language, by adding CSV su...
by sophacles on Thursday May 12, 2022 @02:00PM
(#31357750)
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.