Skip to main content
1 of 2
Tebe
  • 185
  • 2
  • 2
  • 8

There is a better solution:

Just print !! after executed command and you will get repeated output.

E.g.

enter image description here

Original:

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

Tebe
  • 185
  • 2
  • 2
  • 8