[PowerShell] Function To Convert Tab (with Spaces) Delimited Txt File to CSV on October 04, 2022 Get link Facebook X Pinterest Email Other Apps Paste the function into PowerShell:Function convertToCsv{ param($filename) $new = Get-Content $filename | % {$_ -replace ("`t", ",") -replace(" ", "")} $new | Set-Content ($filename + ".csv")}Run as:PS> convertToCsv FILENAME Comments
Comments
Post a Comment