How can I assign the output of a function to a variable using bash?

前端 未结 3 1735
小蘑菇
小蘑菇 2020-12-23 09:06

I have a bash function that produces some output:

function scan {
  echo \"output\"
}

How can I assign this output to a variable?

3条回答
提交回复
热议问题