最佳答案
如果 inner.sh是
#...
echo first
echo second
echo third
outer.sh是
var=`./inner.sh`
# only wants to use "first"...
如何用空格分割 var?