pass stdout as file name for command line util?

前端 未结 5 2062
醉酒成梦
醉酒成梦 2020-11-30 03:23

I\'m working with a command line utility that requires passing the name of a file to write output to, e.g.

foo -o output.txt

The only thing

5条回答
  •  情深已故
    2020-11-30 03:41

    For the sake of making stackoverflow happy let me write a long enough sentence because my proposed solution is only 18 characters long instead of the required 30+

    foo -o /dev/stdout
    

提交回复
热议问题