awk脚本生成sql awk -F" " '{print "select * from A where name='/''''"$1"'/''"}' userid.txt 文件内容: 1234 abc
awk脚本生成sql
awk -F" " '{print "select * from A where name='/''''"$1"'/''"}' userid.txt
文件内容:
1234 abc
12345 efg
awk脚本生成sql awk -F" " '{print "select * from A where name='/''''"$1"'/''"}' userid.txt 文件内容: 1234 abc
awk脚本生成sql
awk -F" " '{print "select * from A where name='/''''"$1"'/''"}' userid.txt
文件内容:
1234 abc
12345 efg