Re: [SLUG] Conversion question

From: Eben King (eben01@verizon.net)
Date: Wed Jan 17 2007 - 16:06:07 EST


On Wed, 17 Jan 2007, Chuck Hast wrote:

> On 1/17/07, Eben King <eben01@verizon.net> wrote:
>> On Wed, 17 Jan 2007, Paul M Foster wrote:
>>
>> > Chuck Hast wrote:
>> >
>> > For clarification:
>> >
>> > Line endings in Unix/Linux: LF (0x0a)
>> > Line endings in DOS/Windows: CR/LF (0x0d 0x0a)
>> > Line endings in Mac: CR (0x0d)
>> >
>> > Not quite sure why you're using a script. Just do:
>> >
>> > cat filename | dos2unix
>>
>> UUOC.
>>
>> dos2unix < filename
>
> I am guessing in this case it would be
> unix2dos <filename?

The file has Unix-style line endings (LF), and you want MSDOS-style endings
(CR+LF), so yes.

If you don't have those, you can change the endings appropriately with sed
and tr.

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   royalty.no-ip.org:81

He who will not reason is a bigot; he who cannot is a fool; and he who dares not is a slave. -Sir William Drummond ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:38:15 EDT