实例 { # try command1 #save your output } || { # catch # save log for exception } docs is-there-a-try-catch-command-in-bash