This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: \n->\r\n?
- To: <gnu-win32 at cygnus dot com>, "Martin Svenningsson" <emmess at bml dot se dot org>
- Subject: Re: \n->\r\n?
- From: "Mark Hadfield" <m dot hadfield at niwa dot cri dot nz>
- Date: Sat, 7 Feb 1998 19:56:59 +1300
These gawk programs accept text in EITHER format at stdin and print dos
(\r\n) & unix (\n) format respectively at stdout
gawk 'BEGIN {RS="(\015\012)|\012"; ORS="\015\012"}; {print}'
gawk 'BEGIN {RS="(\015\012)|\012"; ORS="\012" }; {print}'
==============================================================
Mark Hadfield 10 Emily Way, Karori
m.hadfield@niwa.cri.nz Wellington, New Zealand
-----Original Message-----
From: Martin Svenningsson <emmess@bml.se.org>
To: gnu-win32@cygnus.com <gnu-win32@cygnus.com>
Date: Saturday 7 February 1998 14:16
Subject: \n->\r\n?
>Hi.
>
>I know I can convert crlf to just lf with:
>tr -d '\r' < crlf_file > lf_file
>
>Can I do something simular to transalte from lf to crlf?
>
>And to the cygwin crew:
>Please make text==binary default in b19, we can mount != in the dirs we
want!
>
>Hope to be seeing b19 soon =)
>
>__________________________________________________
>Martin 'EmmEss' Svenningsson - Helsingborg, SWEDEN
>http://www.tripnet.se/~emmess/ - emmess@bml.se.org
>See my mail headers for info about my PGP pub keys
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".