awk输出单引号

参考链接

echo | awk '{ print "'\''"; }' 
[root@node1 ~]# cat file.txt 
epay_entity
store_id
pos_machine_nbr
pos_order_nbr
epay_platform_order_nbr
epay_platform_name
[root@node1 ~]# awk '{print "'\''" $1 "'\''" "," }' file.txt 
'epay_entity',
'store_id',
'pos_machine_nbr',
'pos_order_nbr',
'epay_platform_order_nbr',
'epay_platform_name',

你可能感兴趣的:(awk输出单引号)