2 ms·
Even if the cat at the beginning of a pipe isn't strictly necessary, it still helps readability to have everything flowing from left to right.
by nitrogen 13y ago
Even if the cat at the beginning of a pipe isn't strictly necessary, it still helps readability to have everything flowing from left to right.
- emillon 13y agoI also advocate this "useless" use of cat, but you can write the redirection before the command: <"$1" pv >"$2"
- michaelmior 13y agoThe bigger problem is that using cat destroys the file size information.