public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated [test]: grep-3.0-2
Date: Sat, 18 Feb 2017 13:00:00 -0000	[thread overview]
Message-ID: <db942c5a-c0ca-989a-b781-86ec1e39f67d@redhat.com> (raw)
In-Reply-To: <58a78a5c.cebd240a.d29df.4fa8@mx.google.com>


[-- Attachment #1.1: Type: text/plain, Size: 634 bytes --]

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

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

      reply	other threads:[~2017-02-18 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-14 16:20 Eric Blake (cygwin)
2017-02-16  4:25 ` Steven Penny
2017-02-16  6:17   ` Brian Inglis
2017-02-17 16:43   ` cyg Simple
2017-02-17 23:42     ` Steven Penny
2017-02-18 13:00       ` Eric Blake [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db942c5a-c0ca-989a-b781-86ec1e39f67d@redhat.com \
    --to=eblake@redhat.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).