This is the mail archive of the cygwin 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] |
Other format: | [Raw text] |
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:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |