This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: \n->\r\n?


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]