LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   unix2dos not found (https://www.linuxquestions.org/questions/slackware-14/unix2dos-not-found-138757/)

Big Al 01-26-2004 07:09 AM

unix2dos not found
 
I need to convert a Linux text file to Windows format, but when I tried unix2dos, it said "unix2dos not found".

michaelk 01-26-2004 07:27 AM

It seems the newer distros do not include this utility anymore. Not sure if Slack does or not.

I just use Wordpad which translates automatically but you can only save in DOS format. Textpad is an excellent ASCII text editor for windows and you can save files in unix format.

Dago 07-19-2004 10:23 AM

Re: unix2dos not found
 
In Slackware, these tools change their names to:

unix2dos -> todos
dos2unix -> fromdos

If my memory doesn't fail, in a lot of the other distributions these are found in package "dosutils".

Regards,

Dago

gargamel 07-19-2004 02:04 PM

Re: Re: unix2dos not found
 
Quote:

Originally posted by Dago
In Slackware, these tools change their names to:

unix2dos -> todos
dos2unix -> fromdos

If my memory doesn't fail, in a lot of the other distributions these are found in package "dosutils".

Regards,

Dago

Is there a reason for the renaming...? Or are it different programs, just for the same purpose? Does it make sense, to deviate from standards here, when everything else is kept so clean and standards compliant in Slackware...?

gargamel

keefaz 07-19-2004 03:25 PM

You can always use sed ;)
unix to dos :
sed 's/\n$/\r\n/g' unixfile > dosfile


All times are GMT -5. The time now is 08:05 AM.