News for hackers. Stuff that matters.
Re:Kernighan and Pike were right: Do one thing, and do it well by rakoo on Saturday August 19, 2023 @05:59AM (#37187168)
I disagree, the unix way has structure: lines of text each consisting of space-separated fields. The real issue is that sometimes your data has spaces, or even newlines, so the structure quickly isn't enough. And that "sometimes" happens xay more often than it has to, and the escape hatch is a mess.
Re:Kernighan and Pike were right: Do one thing, and do it well by masfuerte on Saturday August 19, 2023 @07:25AM (#37187655)
> lines of text each consisting of space-separated fields

I wish! Back in the day, tools like iostat and vmstat printed tabular data using fixed width fields with no spaces between. This worked fine until the computers got bigger and faster, then the larger numbers filled the fields so they ran together making the output unreadable. A surprising number of vendors had this problem.

Re:Kernighan and Pike were right: Do one thing, and do it well by BirAdam on Saturday August 19, 2023 @11:31AM (#37189767)
But, you can always override IFS, so this isn’t as much of an issue.
Re:Kernighan and Pike were right: Do one thing, and do it well by bobbylarrybobby on Saturday August 19, 2023 @08:24PM (#37194756)
It's bizarre that this is the case given that ascii contains characters for this very purpose. There's record separator, group separator... Now if your data contains those, that's bad. But that's much rarer than containing ordinary whitespace.