stripping extra text qualifier from a CSV

前端 未结 1 330
时光说笑
时光说笑 2021-01-27 10:34

I have a CSV that has certain fields separated by the \" symbol as a TextQualifier.

See below for example. Note that each integer (eg. 1,2,3 etc) is supposed to be a str

相关标签:
1条回答
  • 2021-01-27 11:32

    Something like this, perhaps?

    (get-content file.txt -ReadCount 0) -replace '([^,]")"','$1' |
     set-content newfile.txt
    
    0 讨论(0)
提交回复
热议问题