本文共 152 字,大约阅读时间需要 1 分钟。
轉載自
var=$( cat foo.txt )
would store the output of the cat in variable var.
cat
var
var=$( ./myscript )
would store the output of myscript in the same variable.
myscript
转载地址:http://swpgi.baihongyu.com/