Hacker News new | ask | show | jobs
by nitrogen 4662 days 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.
2 comments

I also advocate this "useless" use of cat, but you can write the redirection before the command:

    <"$1" pv >"$2"
The bigger problem is that using cat destroys the file size information.