Bash

以下輸出需要 Linux 命令

  • November 17, 2018
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'

引用自:https://unix.stackexchange.com/questions/315390