Reusing output from last command in Bash

后端 未结 13 2067
长情又很酷
长情又很酷 2020-12-07 08:35

Is the output of a Bash command stored in any register? E.g. something similar to $? capturing the output instead of the exit status.

I could assign the

13条回答
  •  情歌与酒
    2020-12-07 09:02

    I think using script command might help. Something like,

    1. script -c bash -qf fifo_pid

    2. Using bash features to set after parsing.

提交回复
热议问题