Lets say my last 3 commands were:
% rm foo.out
% myprog > foo.out
% cat foo.out
I will like to invoke the last 3 with one stroke of the enter key, i.e. do some shell history commands which invke:
% rm foo.out && myprog > foo.out && cat foo.out
How can I do this?