ConvertTo-Csv Output without quotes

前端 未结 14 1048
慢半拍i
慢半拍i 2020-12-01 08:03

I am using ConvertTo-Csv to get comma separated output

 get-process | convertto-csv -NoTypeInformation -Delimiter \",\"

It out

14条回答
  •  不知归路
    2020-12-01 08:45

    Here is a way to remove the quotes

    get-process | convertto-csv -NoTypeInformation -Delimiter "," | % {$_ -replace '"',''} 
    

    But it has a serious drawback if one of the item contains a " it will be removed !

提交回复
热议问题