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',
网友评论