参考链接Smarter Removing Unnecessary WhiteSpace CSV中给出的解决方案
需要使用 unix sed 来实现。
源 CSV 文件具有如下数据:
"112", 21,,"4563446" , "VASQUE, HILARI", 365, "LOPEZ, ESTHER O" ,"16:06","00:00",, , 267.95, 463.48,"Test"
预期输出 CSV 文件:
"112",21,,"4563446","VASQUE, HILARI",365,"LOPEZ, ESTHER O","16:06","00:00",,,267.95,463.48,"Test"