Output of last shell command

前端 未结 11 1523
渐次进展
渐次进展 2020-12-29 02:49

Not until midway through a 3 hour build script, I\'ll remember that I want to see something at the beginning of the output after it\'s done. At this point I\'ve exceeded th

11条回答
  •  自闭症患者
    2020-12-29 02:52

    You can see the return code of the last command, at least in bash, with $?.

    As far stdout goes, I don't think you can.

提交回复
热议问题