
On 2020-09-08 10:01, Carlos E. R. wrote:
On 08/09/2020 08.56, Adam Mizerski wrote:
Even better:
dd if=/dev/nvme0n1p2 | tee -a >(md5sum > nvme0n1p2.md5) | pigz > nvme0n1p2.gz
Something like this is what I was thinking of initially but didn't know how to do. :-)
What confuses me is the tee. "tee -a" sends to a file, but your are doing a second redirection. I will have to test this later.
I was looking for something like this a couple years ago and found it on askubuntu. I tend to save all nice commands for later use :) Here's the original and why it's probably better with /proc/self/fd/2 2 in the long run. For your specific case the shorter one is better. https://askubuntu.com/questions/385264/dump-md5-and-sha1-checksums-with-a-si... -- /bengan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org