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