Copy a file with progress and save hash to a different file
pv file.txt | tee >(sha256sum > file.sha1) > file-copy.txt
Via commandlinefu.com.
Leave a comment