3 ms·
I used to reject the 'useless use of cat' crowd, I like to build my commands from left to right and the original file should be left most, not an argument to th
by seniorsassycat 6y ago
I used to reject the 'useless use of cat' crowd, I like to build my commands from left to right and the original file should be left most, not an argument to the first transformation.
But I changed my mind. The correction of `cat file | grep someting` is not `grep something file` it is `< file grep something`. The file is still the beginning of the pipe just as `cat file` and `< file` alone dumps the content of the file.
I still won't knock people's use of cat, but I'm using it less myself.