There's a lot of Unix/Linux stuff that I wish I could UNlearn, I'm aware of other tools but muscle memory keeps me using worse things.
(honestly, I also feel this way about vim as well as 'writing in cursive')
I still `cat foo | grep bar` instead of `grep foo bar`
I believe "useless use of cat" is FAR MORE useful than what the ultra-nerds say; I could care less about "saving a few characters."
The mental model of the pipeline --in one end and out the other -- is entirely too usefully intuitive and way better than some imaginary geek-cred.
(I was more thinking about the new rust tools, e.g. rg instead of grep)
Pretty usefull when debugging something interactively.
cat foo | $command
with <foo $command
It's the same order, but I think $command can sniff what kind of file stdin is, and optimize. $ df /dev/sda1 /dev/nvme0n1p1
And get only those file systems.You’re just saying “show me the subset of this other list” and you automatically select your go-to solution for that: `|grep`
The reason for seeking a better tool is when too much excessive work (== time) is involved, or list generation has side effects. But in this case you don’t have two million mount points, so no need to worry.
why not make df better...
Jest aside, it's much easier to write a small tool from scratch, than to contribute to coreutils, where this kind of improvement is likely to be rejected, for various arguably valid reasons.
Besides, having alternatives is healthy for the Linux ecosystem, and writing something from scratch is a good learning experience.
Better is also subjective.