結果 : how to check previous command output in shell script