还真有状况,你使用的是for(i=1;i<=NF;i++) $i in a
我要替换的文件里面存着类似server_name=<server_name>这个时候你的$1 in a又匹配不到,还是sed稳妥点,awk漏洞百出作者: 关阴月飞 时间: 2013-11-21 17:34 回复 5# 代号:军刀
print expr-list >file Prints expressions on file. Each expression is separated by the value of the OFS variable. The output record
is terminated with the value of the ORS variable.