Wednesday 29 February 2012

Rolling out of nested shells

I just realized that if I'm really lazy, I can stick && exit after everything to dump me out of all my nested shells after a program completes.
ssh <whateverhost> && exit
sudo -i && exit
for item in list ; do someprocessing ; done && exit

1 comment:

Popular Posts