【发布时间】:2015-07-26 15:21:58
【问题描述】:
我有一个以下文件格式的 .csv:
In: "bob","1234 Main St, New York, NY","cool guy"
我希望删除内部没有逗号的双引号:
Out: bob,"1234 Main St, New York, Ny",cool guy
有没有办法在 Powershell 中做到这一点?
我已经检查过:
- How to remove double quotes on specific column from CSV file using Powershell script
- http://blogs.technet.com/b/heyscriptingguy/archive/2011/11/02/remove-unwanted-quotation-marks-from-csv-files-by-using-powershell.aspx
- https://social.technet.microsoft.com/Forums/windowsserver/en-US/f6b610b6-bfb2-4140-9529-e61ad30b8927/how-to-export-csv-without-doublequote?forum=winserverpowershell
【问题讨论】:
标签: regex powershell csv