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
12345 efg
转载于:https://my.oschina.net/u/618118/blog/956598