8 Sep
2020
8 Sep
'20
08:01
On 08/09/2020 08.56, Adam Mizerski wrote:
W dniu 07.09.2020 o 23:13, Bengt Gördén pisze:
It's slightly different from your command but it does the job and it's a one-liner.
dd if=/dev/nvme0n1p2 | tee -a /proc/self/fd/2 2> >(pigz > nvme0n1p2.gz) > > (md5sum > nvme0n1p2.md5)
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. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)