Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-26-2004, 08:09 AM
|
#1
|
Member
Registered: Jun 2002
Distribution: Slackware
Posts: 143
Rep:
|
unix2dos not found
I need to convert a Linux text file to Windows format, but when I tried unix2dos, it said "unix2dos not found".
|
|
|
01-26-2004, 08:27 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,348
|
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.
|
|
|
07-19-2004, 11:23 AM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 1
Rep:
|
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
|
|
|
07-19-2004, 03:04 PM
|
#4
|
Senior Member
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839
|
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
|
|
|
07-19-2004, 04:25 PM
|
#5
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,608
|
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:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|