-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> I would like a program to convert Unix format to DOS
>If you mean text files, and if you have Windows, open the file in
>Wordpad/Write.
>Alternatively some Unices (eg Solaris) have "dos2unix" or "unix2dos". My
>Mandrake 7.1 doesn't have it installed but that doesn't mean you can't get
>it for Linux.
I usually use something like this:
awk '{printf("%s\r\n",$0)}' in >out
It works, and awk is available everywhere. Going the other way is even
simpler:
cat in | tr -d "\r" >out
Who needs separate monolithic programs for every little thing when you can
recombine the existing tools to do what you want? That's the beauty of UN*X
and systems like it (perl and emacs notwithstanding :-) ).
_/_
/ v \
(IIGS( Scott Alfter (remove Voyager's hull number for email address)
\_^_/ http://salfter.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6Efg6VgTKos01OwkRAs86AKCfb6qgNNc56qwznw54f5fD/43ajgCg6Jap
SLqfwCaZgx+RRCitdoqDOd4=
=6UJn
-----END PGP SIGNATURE-----