For example, when using bash you can use
to execute the previous command or
to execute the Nth command(use history to see the list). Or you can use
to cd into the value in the first field that was executed 2 commands ago
Anyhow, say I run a command and the output is a path. Any way to cd
and then some variable where OUTPUT of the previous command was stored? A variable that always stores the OUTPUT of the last command.