dd if=test.txt | tee >(md5 >> tmp/test.txt.md5) | dd of=tmp/test.txt
or you can reverse the order of the destination and MD5dd if=test.txt | tee >(dd of=tmp/test.txt) | md5 >> tmp/test.txt.md5
This worked for me. The usage case would be when copying a file from "local" media to "remote" media (ex: local HDD to SAN volume)
No comments:
Post a Comment