[ANNOUNCEMENT] Updated [test]: grep-3.0-2

Eric Blake eblake@redhat.com
Sat Feb 18 13:00:00 GMT 2017


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170218/19f0a48a/attachment.sig>


More information about the Cygwin mailing list