pvcp(){ pv "$1" > $2 } Should work. Not yet tested ;). Post navigation Fix: Terminal entry not found in terminfo ‘screen-256color’ not knownLinux sync process