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.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.
$ df /dev/sda1 /dev/nvme0n1p1
And get only those file systems.