Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to use dos2unix so I installed the tofrodos package, but it still says dos2unix: command not found.

So I ran:

apt-file update; apt-file search dos2unix

And it gives zero result.

Where is dos2unix in Ubuntu 2010.04 ?
Has it been replaced by an equivalent utility?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

From the description of the package tofrodos in synaptic:

Tofrodos comprises one program, "fromdos" alias "todos", which converts text files to and from these formats. Use "fromdos" to convert DOS text files to the Unix format, and "todos" to convert Unix text files to the DOS format.

What is wrong with dos2unix and unix2dos is beyond me, and I think it is unbelievable that the package doesn't even make aliases for people who have used linux before and expect dos2unix and unix2dos.

share|improve this answer
2  
And another thing... If the idea is that "fromdos" and "todos" are more friendly than "unix2dos" and "dos2unix" why on earth is the package called "tofordos"? –  Neal Jul 20 '10 at 7:40
    
You can do this if you want to: username@linuxbox:/usr/bin# sudo ln -s fromdos dos2unix username@linuxbox:/usr/bin# sudo ln -s todos unix2dos –  Alexander Bird Sep 20 '12 at 22:24
    
I think the todos/fromdos tools allow for in-place editing of a file, and thus, can be easily included into the "external commands" menu of some GUI-based text editors. With dos2unix a tempfile was needed. –  knb Jul 10 '13 at 19:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.