View Single Post
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