LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-26-2004, 07:09 AM   #1
Big Al
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 143

Rep: Reputation: 15
unix2dos not found


I need to convert a Linux text file to Windows format, but when I tried unix2dos, it said "unix2dos not found".
 
Old 01-26-2004, 07:27 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
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.
 
Old 07-19-2004, 10:23 AM   #3
Dago
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
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
 
Old 07-19-2004, 02:04 PM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
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
 
Old 07-19-2004, 03:25 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
INIT NOT FOUND + HDA(x) NOT FOUND fred99 Linux - Software 1 02-25-2005 02:10 PM
CDROM found/not found SUSE 9.2 dirdej SUSE / openSUSE 4 01-14-2005 11:58 PM
gcc vs. g++ -> iostream lib found vs. not found CooManChu Linux - General 1 12-11-2004 09:20 AM
PDC 20276 - Promise Fasttrack 133 found but still not found.. FransE Linux - Hardware 3 02-16-2004 07:44 AM
Look what I found :) 360 Linux - General 0 12-06-2001 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration