To print the whole buffer, you can use
%p, how do I print value of register to the standard output?
Here is example how I would print the whole buffer:
$ ex +'norm dw' +'%p' -scq! <(echo foo bar) bar
So I'm looking for
%p equivalent printing way for registers, for example to print the last deletion (