Re: [SLUG] Conversion question

From: Chuck Hast (wchast@gmail.com)
Date: Wed Jan 17 2007 - 16:18:04 EST


On 1/17/07, Eben King <eben01@verizon.net> wrote:
> 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.
>
> -

Yep, but I have two utilities and unix2dos is the one to go from LF to CR.+LF,
so figured I needed to use that one.

-- 
Chuck Hast  -- KP4DJT --
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
-----------------------------------------------------------------------
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:16 EDT