Shell one-liner: How to get the command executed before “&&”?

前端 未结 0 1589
温柔的废话
温柔的废话 2020-12-03 14:31

I\'d like to do the thing below:

  1. execute a command, commandA
  2. if commandA was executed successfully, get commandA as a string
相关标签:
回答
  • 消灭零回复
提交回复
热议问题