8 Sep
2020
8 Sep
'20
06:56
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