awk:There are not enough parameters in printf statement 320801|一段简单文字|10110202|GL_ACCOUNT_ID|4||1|22|'3%'|ID_NUMBERLIKE '''1%'' OR ID_NUMBER LIKE '''3%''是不是百分号的原因,初学者,

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 12:55:37
awk:Therearenotenoughparametersinprintfstatement320801|一段简单文字|10110202|GL_ACCOUNT_ID|4||1|22|''3%''|ID

awk:There are not enough parameters in printf statement 320801|一段简单文字|10110202|GL_ACCOUNT_ID|4||1|22|'3%'|ID_NUMBERLIKE '''1%'' OR ID_NUMBER LIKE '''3%''是不是百分号的原因,初学者,
awk:There are not enough parameters in printf statement
320801|一段简单文字|10110202|GL_ACCOUNT_ID|4||1|22|'3%'|ID_NUMBER
LIKE '''1%'' OR ID_NUMBER LIKE '''3%''
是不是百分号的原因,初学者,

awk:There are not enough parameters in printf statement 320801|一段简单文字|10110202|GL_ACCOUNT_ID|4||1|22|'3%'|ID_NUMBERLIKE '''1%'' OR ID_NUMBER LIKE '''3%''是不是百分号的原因,初学者,
不是百分号的原因.
正确:
awk -F "|" '{print $0}' $tablename.tmp
print 是输出相关内容,如print $1
printf 是格式化输出内容,如printf("I want to put:%s\n",$0)