Converting txt file to csv in powershell

后端 未结 1 1106
清歌不尽
清歌不尽 2020-12-31 12:09

I have a tab separated text file after executing some command in powershell i want to convert this tab separated file into csv now how can i do so?

相关标签:
1条回答
  • 2020-12-31 12:50

    A tab separated text file could be treated as a CSV file with a tab instead of comma as its delimiter. To convert:

    import-csv tabdelimitedfile.txt -delimiter "`t" | export-csv csvfile.csv
    
    0 讨论(0)
提交回复
热议问题