1833786 Members
2763 Online
110063 Solutions
New Discussion

Re: ux2dos question

 
harikrishna
Advisor

ux2dos question

while i am converting unix file format to dos using ux2dos command , a carriage return is added to the converted file at the end.Is there any chance to remove that carriage return.

I am using
ux2dos hai.doc > hai1.doc
4 REPLIES 4
Rajeev  Shukla
Honored Contributor

Re: ux2dos question

Hi,
You are seeing the carriage return because you are trying to vi the converted file on unix. Transfer the file to DOS platform and then view the file, that should be fine.
T G Manikandan
Honored Contributor

Re: ux2dos question

you have converted it to the dos format which will add the carriage return.

Again do a dos2ux hai1.doc > hai2.doc

to remove the ^M characters
Hoefnix
Honored Contributor

Re: ux2dos question

You posted a new item with an answer to this question.
You send the file with mailx and then using MS-word.

I don't think you need ux2dos when viewing plain unix text files in ms-word.

Just use next command to send your file:

uuencode hai.doc hai.doc | mailx -s "subject" p.geluk@tpgpost.nl

Regards,

Peter
Elmar P. Kolkman
Honored Contributor

Re: ux2dos question

Those carriage returns (-M) is exactly what ux2dos is for, because an end-of-line under unix only consists of a linefeed, while dos uses a carriage return PLUS a linefeed. So if you don't want the carriage returns, don't use ux2dos.
Every problem has at least one solution. Only some solutions are harder to find.