Output of last shell command

前端 未结 11 1554
渐次进展
渐次进展 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:56

    How about using substitution. Like this:

    command1
    command2
    RESULT=`LASTCOMMAND`
    echo $RESULT

提交回复
热议问题