tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Karl Marble <marblek () city ! ci ! worcester ! ma ! us>
To: tru64-unix-managers
Subject: SUMMA: Anyone have the source for dos2unix and unix2dos??
Date: Thu, 07 Nov 1996 18:32:32 +0000	[thread overview]
Message-ID: <96076341621423.tru64-unix-managers.marc@archive.invalid> (raw)


The only response I got for sources was:

ftp://ftp.ae.katowice.pl/pub/utils/unix2dos/dos2unix.tar.gz

which is VERY slow, and I couldn't connect to it.

A previous sysop put the binaries on our machine, but no man pages.  That's
more of what I wanted was documentation.

The better solution is to do it in unix.  I can't believe that I looked over
this in the first place... DUH!!!!  

dos2unix:  tr -d "\015\023" < inputfile > outputfile

unix2dos can be an awkscript that appends a ^M to the end of every field and
a ^Z at the end of the record (file)

Thanks to the following for their responses:

Gregory Neil Shapiro <gshapiro@WPI.EDU>
Peter deFriesse <peter@oitunix.oit.umass.edu>
Bryon Nicoson <bnico@thin.ice.net>
Piotr Bienias <bienias@ae.katowice.pl>
Keith MCCABE <Keith_MCCABE@paribas.com>
carlos.touzard@citicorp.com
John Schaeffer <jsch@conncoll.edu>
--
Karl Marble
Unix Administrator & Webmaster
City of Worcester Information Services
Worcester, MA
mailto:marblek@city.ci.worcester.ma.us 
http://www.ultranet.com/~kmarble  (My 'at-work' page isn't finished yet)

                 reply	other threads:[~1996-11-07 18:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox