当我输入:
echo "foo bar" | gawk -v var="content" '{print $var}'
我希望输出为content. 为什么foo bar?
content
foo bar
awk variable
awk ×1
variable ×1