sed end of line

Brian Inglis
Sat Mar 16 02:59:00 GMT 2019

On 2019-03-15 04:03, Soegtrop, Michael wrote:
> you are mixing a DOS echo which will produce a \r\n line ending with a
> Cygwin sed which expects \n line endings. The second . matches the \r.
> Either work in bash and use Cygwin echo or use a MinGW compile of sed or
> strip the \r e.g. with tr or maybe match it more explicitly with a \r.

Or use Cygwin printf "%s\n" "Hey" to avoid differing echo output.

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list