如何将此结果分配给shell变量?
输入:
echo '1+1' | bc -l
输出:
2
尝试:
(没用)
#!bin/sh a=echo '1+1' | bc -l echo $a
shell pipe bc
bc ×1
pipe ×1
shell ×1