3 ms·
It's not even a noob thing. I've been using using *NIX for 15+ years and I still don't subscribe to this "useless use of cat" pedantry. Without cat I need to u
by oblio 6y ago
It's not even a noob thing. I've been using using *NIX for 15+ years and I still don't subscribe to this "useless use of cat" pedantry.
Without cat I need to use redirections or find the parameter for each command I use, in order to get things from a file.
cat bla | command1 | command2
is much nicer to write and read, much more logical and much easier to modify if needed.
"Useless use of cat" is a micro-optimization. Use if you want or need, don't turn it into dogma or even better, newbie shaming (yay for gatekeepers!).