Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • 9
    These are now sometimes named "fromdos" and "todos", respectively (as is the case in Ubuntu 10.4+) Commented Jun 25, 2012 at 2:20
  • 6
    @JessChadwick: Yes, but only if you explicitly install the tofrodos package with sudo apt-get install tofrodos - just as you'd have to run sudo apt-get install dos2unix to get dos2unix and unix2dos.
    – mklement0
    Commented Dec 20, 2015 at 1:54
  • Actully dos2unix can't do all the work, I think stackoverflow.com/questions/23828554/dos2unix-doesnt-convert-m gives best answer
    – nathan
    Commented Dec 8, 2016 at 0:28
  • @nathan: What does dos2unix fail at? The OP at that question only vaguely describes the issue. Commented Dec 8, 2016 at 1:23
  • @DennisWilliamson file command before and after dos2unix command got same output: xxx.c C source, ASCII text, with CR, LF line terminators. I found this c file has ^M in the middle of line which likes xxxxxxx ^M xxxxxxx
    – nathan
    Commented Dec 8, 2016 at 3:34