3 ms·
While cat could be argued to be overkill (... but not by me...), that's not a useless use of cat because if you pull it out (as you've done) there's nothing to
by dllthomas 6y ago
While cat could be argued to be overkill (... but not by me...), that's not a useless use of cat because if you pull it out (as you've done) there's nothing to actually read the bytes from stdin and write them to stdout. All you've done is opened two files and closed them again.
(Edited to add: unless you're using zsh, apparently)
- treve 6y agoAh interesting! I do use zsh and didn't know this didn't exist in bash.