Live data from Hacker News

Modern Linux Tools vs. Unix Classics: Which Would I Choose?

meetryanflowers.com

11–20 of 61 posts

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#11
The title should read modern GNU tools. Linux is a kernel and supplies nothing useful for command line lovers.

Nonetheless, the more modern tools are generally better, faster and more feature rich. I'd pick them over the older versions unless there was a compelling reason not to.

Yes, I've used both. For almost forty years now.

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#12
awk, sed etc. belong to the museum, now that we have so many tools and libraries that can handle structured data.

The whole early Unix obsession with plain text files was a step in the wrong direction. One grating holdover of that is the /proc filesystem. Instead of a typed, structured api you get the stuff as text to be parsed, file system trees and data embedded in naming conventions.

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#13
post #4

I too can never remember jq syntax when I need to. I usually just end up writing a Python script to extract the part of the JSON I need.

ChatGPT is a fantastic usecase for this. Last week I had to extract a bunch of data that was in some nested arrays, pasted a json sample into ChatGPT and asked it to use jq to extract certain fields when certain conditions were met, a couple of tweaks later and I had exactly what I needed.

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#14
post #11

The title should read modern GNU tools. Linux is a kernel and supplies nothing useful for command line lovers. Nonetheless, the more modern tools are generally better, faster and more feature rich. I'd pick them over the older versions unless there was a compelling reason not to. Yes, I've used both. For almost forty years now.

[deleted]

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#15

awk, sed etc. belong to the museum, now that we have so many tools and libraries that can handle structured data. The whole early Unix obsession with plain text files was a step in the wrong direction. One grating holdover of that is the /proc filesystem. Instead of a typed, structured api you get the stuff as text to be parsed, file system trees and data embedded in naming conventions.

[deleted]

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#17
post #11

The title should read modern GNU tools. Linux is a kernel and supplies nothing useful for command line lovers. Nonetheless, the more modern tools are generally better, faster and more feature rich. I'd pick them over the older versions unless there was a compelling reason not to. Yes, I've used both. For almost forty years now.

I think you mean GNU/Linux?

jq is neither a GNU project nor distributed under a GNU license, which is what your suggested title implies.

Re: Modern Linux Tools vs. Unix Classics: Which Would I Choose?

#20
jq is definitely tough to learn, I can never remember it.

But, the whole argument against jq as a unitasker not worth learning and traditional unix tools being better is weird. Traditionally Unix tool mentality was “do one thing only and do it well” then pipe it together. jq fits perfectly into the Unix toolset.

Post reply on HN