Is there a linux bash command like the java try catch finally? Or does the linux shell always go on?
try { `executeCommandWhichCanFail` mv output } catch { mv log } finally { rm tmp }