nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   Linux format and MS format question (http://www.nvnews.net/vbulletin/showthread.php?t=58272)

Jeremykai 10-17-05 04:04 AM

Linux format and MS format question
 
Dear Sir/Madam

I am sorry to ask anyone know how to copy Linux bug report format to MS format due to my purpose is want to report the Linux question while building
the Linux system.




Jeremy

Thunderbird 10-17-05 04:58 AM

Re: Linux format and MS format question
 
In short the issue is that on Unix lines end with a 'linefeed'-character while on windows they end with both a 'carriage return' and a 'linefeed'. Most distributions ship with a tool called dos2unix / unix2dos which can do the conversion in other cases you can do it using a 'good' text editor. If you can't find one which can do it you can for instance open the text file using lets say openoffice and save it as a rtf or doc file and then the lines are correct for sure.

Jeremykai 10-19-05 09:34 AM

Re: Linux format and MS format question
 
Thank you tell me about the unix2dos & dos2unix.However I got the question
due to I have been try to typing the Commands in the Linux.Why doesn't respose the and action. My Linux version is Debian. Kernel 2.4.27





Jeremy

wnd 10-19-05 12:24 PM

Re: Linux format and MS format question
 
In case you just want to add/remove carriage return, you can use the following instead of dos2unix...

Add carriage return (from UNIX to DOS):
Code:

sed -ie "s/$/\r/" file
Remove carriage return (from DOS to UNIX)
Code:

sed -ie "s/\r//" file
Answer based on Thunderbird's reply -- I didn't understand the question.


All times are GMT -5. The time now is 07:03 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.