dos to unix CR/LF conversion?

James Knott james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun Nov 9 12:16:14 UTC 2003


Error on my part.  That should be ^J & ^M.


James Knott wrote:
> There shouldn't be a ^r.  The dos chars are ^l & ^m, with Unix using 
> only ^l.
> 
> 
> Max Blanco wrote:
> 
>> Thanks to all who answered.
>> I did as James suggested and found the app dos2unix at 
>> <www.megaloman.com/~hany/software/hd2u/>.
>> Unfortunately, at first glance, it seems to delete ^m but doesn't seem 
>> to insert ^r?  That's what happened to my text file.  That's just a 
>> minor tweak to the source code, though.
>>
>> cheers,
>> max.
>>
>> On Sat, 8 Nov 2003, James Knott wrote:
>>
>>
>>> Max Blanco wrote:
>>>
>>>> Hi all,
>>>>
>>>> I can't locate a tool using "man" to translate from dos ^m to unix 
>>>> ^m^r (or whatever) on the command line.
>>>>
>>>> Anyone know if such a utility exists?  If so, how do I invoke it?
>>>>
>>>> I'm not interested in reinventing any wheels.
>>>
>>>
>>> There is a utility called dos2unix & the reverse.  If it's not 
>>> installed in your distro, you can download it from somewhere.  Use 
>>> google to search on dos2unix
>>>
>>
>>
>>
>> -- 
>> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
>> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
>> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
> 
> 
> 


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list