use*_*905 5 unix shell aix awk
我有一个脚本,其内容如下:
result= awk 's=100 END {print s }'
echo "The result is" $result
Run Code Online (Sandbox Code Playgroud)
所需的输出是:
The result is 100
Run Code Online (Sandbox Code Playgroud)
我的脚本正在运行而没有退出,我也没有得到所需的输出.请帮忙.
语法是:var1=$(command).
result=$(awk 'BEGIN{s=100} END {print s}' /dev/null)
echo "The result is $result"
Run Code Online (Sandbox Code Playgroud)