Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 1996 17:07:34 +0000 ()
From:      David Nugent <davidn@sdev.blaze.net.au>
To:        Gordon Rios & Jennifer Melvin <rios@ricochet.net>
Cc:        questions@freebsd.org
Subject:   Re: DOS to UNIX file transfers
Message-ID:  <Pine.BSF.3.95.960925170341.5819U-100000@sdev.blaze.net.au>
In-Reply-To: <3248117C.58C3@ricochet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Sep 1996, Gordon Rios & Jennifer Melvin wrote:

>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? 

Usually. Most UNIX programs don't expect the CR before the
newline.

>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? 

Pipe it through col -b to get rid of the bold/underlining.

man chmod | col -b > chmod.txt

Create a shell alias if you find yourself doing this often.

Regards,
David

David Nugent, Unique Computing Pty Ltd - Melbourne, Australia
Voice +61-3-791-9547 Data/BBS +61-3-792-3507 3:632/348@fidonet
davidn@blaze.net.au http://www.blaze.net.au/~davidn




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.960925170341.5819U-100000>