Re: [SLUG] Conversion question

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


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

> You could put that in a script, if you like. The output will be to screen,
> with line endings of CR/LF.

-- 
-eben     QebWenE01R@vTerYizUonI.nOetP     http://royalty.no-ip.org:81
An ASCII character walks into a bar and orders a double. "Having a bad
day?" asks the barman. "Yeah, I have a parity error," replies the ASCII
chrcter. The barman says, "Yeah, I thought you looked a bit off." - Skud
-----------------------------------------------------------------------
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:03 EDT