I know I can run the last command in bash, with !!
, but how can I run the last line of output?
I am thinking of the use case of this output:
The program 'git' is currently not installed. You can install it by typing:
sudo apt-get install git
But I don't know how I can run that. I'm thinking of something like the !!
, maybe @@
or similar?
Super User has this question too.