3 ms·
So the "improper" use of cat, for printing files on screen, dates back to at least 1983. I consider it legitimized.
by TeMPOraL 8y ago
So the "improper" use of cat, for printing files on screen, dates back to at least 1983. I consider it legitimized.
- dijit 8y agoCat is fine for reading a file. It’s when you ‘cat <file> | grep <word>‘ that it becomes improper use.
- JdeBP 8y agoTeMPOraL got the adjective wrong. The correct adjective is "useless". * http://porkmail.org/era/unix/award.html http://porkmail.org/era/unix/award.html
- oblio 8y agoI never liked this "improper" moniker. If you're writing a quick script it's way more convenient and readable to just put the input where you'd expect it, at the start of the pipeline, as its own thing. It's a bit more inefficient, but you don't go mucking around with file input parameters for the commands later on in the pipeline, especially as you're moving them around and changing them.