2 ms·
Randal Schwartz used to give out the "Useless use of `cat' award" to annoyed posters in comp.unix.shell because of the relative obscurity of the `<' operator.
by guns 16y ago
Randal Schwartz used to give out the "Useless use of `cat' award" to annoyed posters in comp.unix.shell because of the relative obscurity of the `<' operator.
http://groups.google.com/groups?q=Useless%20Use%20of%20Cat%20Award http://groups.google.com/groups?q=Useless%20Use%20of%20Cat%2...
(actually his main point was that most unix commands take a file as an arguments, but for the ones that don't you can just slurp it into stdin with `<')
Nowadays, we could say the same thing about useless uses of `echo', given the modern `<<<' operator.
- klodolph 16y agoIn those same modern shells, "echo" and "<<<" are both built-in, but "cat" is not.