Is there a PowerShell command (or anything else) to convert the line endings within a text file from Unix-style (line-feed only) to Windows-style (carriage-return and line-feed), in place, without changing anything else (apart from modification date, which would be OK)? In some *nix systems, there is a command called unix2dos.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| CRLF conversion LF | 2 | 744 | May 16, 2024 | |
| Remove a single CR/LF from a CSV file | 8 | 128 | November 28, 2025 | |
| Replace CRLF does not work, when using "get-content" | 4 | 631 | May 16, 2024 | |
| PS adds CRLF to end of strings on output | 1 | 628 | May 16, 2024 | |
| Search and Replace CRLF | 2 | 515 | May 16, 2024 |