LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08: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, 08:27 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,348

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
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, 11: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, 03: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, 04:25 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,608

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:10 PM
CDROM found/not found SUSE 9.2 dirdej SUSE / openSUSE 4 01-15-2005 12:58 AM
gcc vs. g++ -> iostream lib found vs. not found CooManChu Linux - General 1 12-11-2004 10:20 AM
PDC 20276 - Promise Fasttrack 133 found but still not found.. FransE Linux - Hardware 3 02-16-2004 08:44 AM
Look what I found :) 360 Linux - General 0 12-06-2001 01:04 PM

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

All times are GMT -5. The time now is 08:55 PM.

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