When dd is done it prints a three line summary about the number of read and written segments, the total size and average writing speed. While it does its work, dd is awfully quiet.
Not too long ago (mea culpa) I discovered that I can make dd print the three line summary while it is still doing work by emitting SIGUSR1. Ever since I do
dd <magic incantation> &
watch kill -USR1 $!
The problem is, that with this the three lines of dd's summary are not left aligned. Each following line starts at the column the previous line ended. So I'm guessing dd prints a newline character, but not a carriage return and whatever watch uses to print output expects carriage returns.
I tried putting | sed -e '<expression>' behind the kill command different sorts of quoting but the output I get presented does not change at all.
How can I pretty print the dd output in this scenario?
gnu dd v. 8.24, it displays progress/summary.pv -d. In cases you don't need features specific todd, maybe you can usepvinstead ofddin the first place.