[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [solved] Re: Problems with text file going from Linux to MS Windows

On Sun, 22 Jul 2007 12:19:17 +1000, Andy Goss wrote:

> Rodolfo Medina <rodolfo.medina@gmail.com> writes:
>>> If I want to send a text file to an MS Windows user there are problems: in
>>> fact, in MS Windows a text file which has been composed under Linux is not
>>> correctly read: the line ends are not recognised. 

>>> Can anybody suggest some solution to this problem?

Use MS-DOS-file format, if you want to share text files between Linux and

As most have pointed out, most Linux text editors can recognize and use
the MS-DOS-file format files. I'll add emacs to the list.

>>> The remedy is to cut the text
>>> and paste it into an MS Word file, then cut it again and re-paste it into the
>>> text file, which is not so good because this way I need rebooting every time
>>> into the Windows partition.

That's too much troublesome. Use 
unix2dos (/usr/bin/unix2dos) and dos2unix (/usr/local/bin/dos2unix)
to convert file formats between Unix & Dos. 

The unix2dos & dos2unix is from the tofrodos package.


Tong (remove underscore(s) to reply)

Reply to: