you can download the mtools utility (http://www.mit.edu/afs/athena/system/mtools/src/) to get the dos2unix/unix2dos functionality as well as others. Other sites for finding dos2unix are: http://www.megaloman.com/~hany/RPM/dos2unix.html http://www.bastet.com/software/software.html --this is a win32 port http://jon.kw.net/download/dos2unix/
and these are just a few. A web search on dos2unix and mtools turned up several sources for both.
Noelette Stout Unix System Administrator IKON Office Solutions, Inc Digital Express tel. (770)326-4140 fax (770)326-4139 email: nstout@ikon.com
-----Original Message----- From: Guy Harris [mailto:guy@netapp.com] Sent: Wednesday, January 16, 2002 3:13 PM To: Stout, Noelette Cc: toasters@mathworks.com Subject: Re: ascii files convertion UNIX <--> windows ?
On the UNIX side, you can also use the dos2unix and unix2dos commands.
That depends on the UNIX; Digital UNIX 4.0, for example, doesn't have those commands, unless they're in a component we didn't install:
hostname$ uname -sr OSF1 V4.0 hostname$ dos2unix ksh: dos2unix: not found hostname$ unix2dos ksh: unix2dos: not found
The same applies to HP-UX 11.00:
hostname$ uname -sr HP-UX B.11.00 hostname$ dos2unix ksh: dos2unix: not found hostname$ unix2dos ksh: unix2dos: not found
and, for that matter, to whatever version of Red Hat Linux is on some machines here:
hostname$ uname -sr Linux 2.2.14-6.1.1 hostname$ dos2unix ksh: dos2unix: not found hostname$ unix2dos ksh: unix2dos: not found
I would not, however, be surprised to hear that there's a GNU utility that'll convert between DOS/Windows and UNIX text file format.