There is a better solution:
Just print !! after executed command and you will get repeated output.
E.g.

Original:
http://askubuntu.com/questions/324423/how-to-access-the-last-return-value-in-bashhttps://askubuntu.com/questions/324423/how-to-access-the-last-return-value-in-bash