How to convert windows (CRLF) to Unix(LF)?

Hello community,

I have a CSV file in Windows(CRLF) format. How do I convert it to Unix(LF) ?

I couldn’t find a powershell script for the conversion. Please help me with this.

Thank you.

Hello @tokiomarine_rpa,
with PowerShell you can use this function.
Best regards
Stefan

Function csv2unix ($infile, $outfile) {
  (Get-Content -raw $infile) -replace "`r`n", "`n" |
  Set-Content -nonewline $outfile
}

csv2unix -infile "Test.csv" -outfile "TestUnix.csv"