当前位置: 技术问答>linux和unix
大家来帮我看看这段脚本有什么问题
来源: 互联网 发布时间:2017-03-01
本文导语: file=info.txt flag=ibm for item in `cat lcaix43_info.txt` do awk '{if ($1==$item && $3~/$flag/) (print $1tTt$3); else (print $0);}' MBfiles done 报了不少如下 错误: awk: syntax error near line 1 awk: illegal statement near line 1 ...
file=info.txt
flag=ibm
for item in `cat lcaix43_info.txt`
do
awk '{if ($1==$item && $3~/$flag/) (print $1tTt$3); else (print $0);}' MBfiles
done
报了不少如下 错误:
awk: syntax error near line 1
awk: illegal statement near line 1
flag=ibm
for item in `cat lcaix43_info.txt`
do
awk '{if ($1==$item && $3~/$flag/) (print $1tTt$3); else (print $0);}' MBfiles
done
报了不少如下 错误:
awk: syntax error near line 1
awk: illegal statement near line 1
|
发现一个, print不能用t, printf可以用t