C:\tmp\text>dos2unix hello.txt helloUNIX.txt
Sed daha da yaygın olarak bulunur ve dos2unix kurulu değilse de bu tür şeyleri yapabilir.
C:\tmp\text>sed s/\r// hello.txt > helloUNIX.txt
Ayrıca tr'yi deneyebilirsiniz:
cat hello.txt | tr -d \r > helloUNIX2.txt
Sonuçlar burada:
C:\tmp\text>dumphex hello.txt
00000000h: 48 61 68 61 0D 0A 68 61 68 61 0D 0A 68 61 68 61 Haha..haha..haha
00000010h: 0D 0A 0D 0A 68 61 68 61 0D 0A ....haha..
C:\tmp\text>dumphex helloUNIX.txt
00000000h: 48 61 68 61 0A 68 61 68 61 0A 68 61 68 61 0A 0A Haha.haha.haha..
00000010h: 68 61 68 61 0A haha.
C:\tmp\text>dumphex helloUNIX2.txt
00000000h: 48 61 68 61 0A 68 61 68 61 0A 68 61 68 61 0A 0A Haha.haha.haha..
00000010h: 68 61 68 61 0A haha.