delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/18/08:00:52

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=b+d6
xv+bp54WtLjmvbSoLGs3eE6Geb0vtB3ZV0LkclRx9zwDfSm1lX3nqEia7o9kT/uG
YSsYj5g4Oi89Y0qQtiCOylfnp9LTVS6ApbsFgSuDe8t7x6KQKyu5Yxyor8EUgGDE
zg37xVRLHJaHS+T6KbYdBf9SPP2QYUOWpCOfP90=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=Ln72GVFuW7
vYrfZdavzuN1sZXRY=; b=R1+ya0XQWVZpMaB71aGW5CLZ3MES4Btk4xTKesf1hJ
FqrFQH1RltJcdYuyR86pyiTlnhpQobclsECWCtNpxuIKTMW7Fr/K0GF284mYB6lW
N2FvIbOtrFA5DtMJtX8/bbTVqEeJ1DOlXH1s0uGkuhV5XqK1p999AbY04etTpfi7
o=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=endings, Hx-languages-length:655, Vim, H*f:sk:7326506
X-HELO: mx1.redhat.com
Subject: Re: [ANNOUNCEMENT] Updated [test]: grep-3.0-2
To: cygwin AT cygwin DOT com
References: <7326506c-5785-001c-0613-be94257689d8 AT gmail DOT com> <58a78a5c DOT cebd240a DOT d29df DOT 4fa8 AT mx DOT google DOT com>
From: Eric Blake <eblake AT redhat DOT com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <db942c5a-c0ca-989a-b781-86ec1e39f67d@redhat.com>
Date: Sat, 18 Feb 2017 06:59:56 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <58a78a5c.cebd240a.d29df.4fa8@mx.google.com>
X-IsSubscribed: yes

--qXSqFPP19RD2rwCs9GO70V22h32unfD4F
Content-Type: multipart/mixed; boundary="fkw0Cmhl2qnlDOdElmRb75drRff4MfOr1";
 protected-headers="v1"
From: Eric Blake <eblake AT redhat DOT com>
To: cygwin AT cygwin DOT com
Message-ID: <db942c5a-c0ca-989a-b781-86ec1e39f67d AT redhat DOT com>
Subject: Re: [ANNOUNCEMENT] Updated [test]: grep-3.0-2
References: <7326506c-5785-001c-0613-be94257689d8 AT gmail DOT com>
 <58a78a5c DOT cebd240a DOT d29df DOT 4fa8 AT mx DOT google DOT com>
In-Reply-To: <58a78a5c DOT cebd240a DOT d29df DOT 4fa8 AT mx DOT google DOT com>


--fkw0Cmhl2qnlDOdElmRb75drRff4MfOr1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 02/17/2017 05:42 PM, Steven Penny wrote:
> On Fri, 17 Feb 2017 11:43:13, cyg Simple wrote:
>> There are as many ways to remove the \r as there are ways to create
>> them.
>=20
> Not really, if you are interested in POSIX compliance. POSIX Sed does not
> support \r or \xD or \15. Same for POSIX Vim. The only portable tools I
> know are
> awk and tr.

And tr can only remove ALL \r; if all you want to do is convert \r\n
line endings to \n while preserving mid-line embedded \r, you're stuck
with awk or d2u.

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--fkw0Cmhl2qnlDOdElmRb75drRff4MfOr1--

--qXSqFPP19RD2rwCs9GO70V22h32unfD4F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJYqEVMAAoJEKeha0olJ0Nq4ecH/0519dpvk3BUzjrNlElJ9iGh
iHDTiNze1ec4UMQ5ltt5XVEZW6CXhqQRkfabDB4LG9YHRONx93+k5Yqe4r7boDTF
8nmHhwg6OoBdBIk6TFRy/V1iF3vHn/78HEZCgEBbhJ6HR6GZEOfawIgIa29z22hs
YNl3maFKflZz17OgVZxq6TtQ4Nqx0yTqWjC6fKfpq1K4Dxpb91Y3BWNi3sJdSc0o
6o1oFsHXlv+xqMaNr3fla36yVa7NxNn2TO0gQfpkOMH/JyDihHH8K2YNhdw5ag6z
eLofutZe/QFGzE8eHmg+Jx+GK82kP1RHLktaZcVpL3p2Sd/5vf1gwxnThP/nQ3Q=
=UTde
-----END PGP SIGNATURE-----

--qXSqFPP19RD2rwCs9GO70V22h32unfD4F--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019