3 ms·
Cat is not meant for printing files to the terminal
- 2fast4you 7y agoI didn’t know it concatenates file
- draw_down 7y agoReally? > Concatenate FILE(s) to standard output. Sounds awfully close to me.
- Tomte 7y agoStrange: it says right there "concatenate files and print on the standard output". Also, everybody is using it to print files to the terminal. You're simply mistaken and should not trust those who rant about "useless use of cat" and such things.
- 2fast4you 7y agoMaybe I should’ve used a different title, the biggest “revelation” for me was that cat will concatenate files. It’s such a simple command, I never bothered to look at the man page. Although I still find it interesting that it’s original purpose was concatenation and not purely displaying file
- cynix 7y ago> Strange: it says right there "concatenate files and print on the standard output". Standard output is not necessarily a terminal.
- Tomte 7y agoThe terminal is the most-used destination of standard output, so it clearly includes the terminal.