Go Back   nV News Forums > Linux Support Forums > General Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-17-05, 04:04 AM   #1
Jeremykai
Registered User
 
Join Date: Oct 2005
Posts: 2
Default 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
Jeremykai is offline   Reply With Quote
Old 10-17-05, 04:58 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default 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.
Thunderbird is offline   Reply With Quote
Old 10-19-05, 09:34 AM   #3
Jeremykai
Registered User
 
Join Date: Oct 2005
Posts: 2
Default 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
Jeremykai is offline   Reply With Quote
Old 10-19-05, 12:24 PM   #4
wnd
Nerd, Geek, Freak
 
wnd's Avatar
 
Join Date: Sep 2005
Location: Finland
Posts: 703
Default 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.
__________________
web | cat

Christianity, noun: The belief that a cosmic Jewish Zombie who was his own father can make you live forever if you symbolically eat his flesh and telepathically tell him you accept him as your master, so he can remove an evil force from your soul that is present in humanity because a rib-woman was convinced by a talking snake to eat from a magical tree. [mad.frog]
wnd is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:56 AM.


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