3 ms·
> Some people insist that we should never use a cat Rather, people argue against useless use of cat, which is different. Personally, I'd never argue against it
by js2 2y ago
> Some people insist that we should never use a cat
Rather, people argue against useless use of cat, which is different. Personally, I'd never argue against it on the command-line even though some do. It's once you commit your pipeline to a script where you may as well remove it.
There are also suitable uses of cat that I don't think anyone would argue against. Besides the obvious use of outputting one or more files, it's also often used with here docs.