by ImaCake · 5y ago · 0 comments
There's definitely a place for poking fun at Unix noobs - I have learnt better tools than cat because of it - but it is not terribly relevant here.
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!).
I wouldn't be surprised if there existed some obscure distro that ships this alias in the default bashrc