u/fjammes/dm-1497

PR for review.
newline is missing, but again, `echo` is perfectly OK, no need to use `printf` everywhere.