Input_file
"5" '6' '7'
Final_file should have
5 "6" '7'
需要一个单行命令
答案1
$ cat test.txt
"5" '6' '7'
$ awk -F"[\"']" '{print $2 " \""$4"\"",q$6q}' q="'" test.txt
5 "6" '7'
Input_file
"5" '6' '7'
Final_file should have
5 "6" '7'
需要一个单行命令
$ cat test.txt
"5" '6' '7'
$ awk -F"[\"']" '{print $2 " \""$4"\"",q$6q}' q="'" test.txt
5 "6" '7'