Date: Tue, 24 Sep 1996 13:48:07 -0700 (PDT) From: tbaird@lsv-is.lifescan-can.com (Tim Baird) To: questions@FreeBSD.org Subject: Re: DOS to UNIX file transfers Message-ID: <199609242048.NAA17738@lsv-is.lifescan-can.com>
next in thread | raw e-mail | index | archive | help
>When I use vi to look at a file that I have copied over from DOS, I see >a bunch of ^M characters, but they don't show up when I "cat" a file. I >know they are carriage returns of some sort, but do they cause problems? sometimes.... >Also, when I try to transfer a manpage (e.g. man chmod > chmod.txt) and >transfer that to dos, I get a bunch of block characters and an unuseable >mess. What am I doing wrong? try: gzcat /usr/share/man/man1/chmod.1.gz | groff -man | ps2ascii > mychmod.txt this assumes: 1) that the man page is compressed - if not, use cat ISO gzcat 2) that you have installed ghostscript which has the ps2ascii utility The results are ok if you pull it into an editor with line wrapping.... >-- >Gordon P. Rios >HM: rios@ricochet.net (415-327-1219) >WK: Gordon_Rios@scudder.com (415-403-0728) >Menlo Park, CA > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609242048.NAA17738>