[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Saving text file
- From: "Anthony E. Greene" <agreene pobox com>
- To: redhat-list redhat com
- Subject: Re: Saving text file
- Date: Mon, 07 Sep 1998 14:03:37 +0200
At 15:38 1998-09-03 +0200, Matt Kaminer wrote:
>When I save a file in linux and view it in DOS it appears on one line (the
>endline thingie Ctrl-whatever)
>
>how do i convert that to read in dos so when i view the txt file in
>notepad it doesnt come up all screwy!
Unix/Linux stores text files with a line feed (LF) terminating each line of
text. DOS machines use a line feed and a carriage return (CRLF). Mac's use
a carriage return (CR).
The best way is to use an editor that understands LF as end-of-line. I use
Programmer's File Editor <http://www.lanc.ac.uk/people/cpaap/pfe/>. It's
the best freeware editor I've seen for MS Windows 16/32 bit platforms.
Another solution is to transfer files via FTP using ASCII mode. This will
take care of the translation transparently.
Tony
--
Anthony E. Greene <agreene pobox com>
Homepage & PGPKey: <http://www.pobox.com/~agreene/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]