Mail Archives: cygwin/1998/02/07/01:18:12
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 DOT hadfield AT niwa DOT cri DOT nz Wellington, New Zealand
-----Original Message-----
From: Martin Svenningsson <emmess AT bml DOT se DOT org>
To: gnu-win32 AT cygnus DOT com <gnu-win32 AT cygnus DOT 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 AT bml DOT se DOT 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 AT cygnus DOT com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -