SHELL方面问题假如在shell中一个变量a=10 然后awk -v b=$a ' b=2' ... 然后再在shell中调用a 的值仍然是10,怎么样才能使a的值在shell中成为2,前提是必须在awk中改变a的值。 谢谢[解决办法]root@yeah ~$ a=10root@yeah ~$ eval $(awk -v b=$a 'BEGIN{print "a="b/5}')root@yeah ~$ echo $a2root@yeah ~$