How to pipe a here-document through a command and capture the result into a variable?

前端 未结 3 842
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 04:46

Right now this outputs the value I need on stdout. How can I capture it into a variable so I can use it in the rest of the script?

Requirements:

  • The scrip
3条回答
提交回复
热议问题