Hacker News new | ask | show | jobs
by emillon 4662 days ago
I also advocate this "useless" use of cat, but you can write the redirection before the command:

    <"$1" pv >"$2"