sed end of line

L A Walsh cygwin@tlinx.org
Sat Mar 16 14:49:00 GMT 2019


On 3/15/2019 7:59 PM, Brian Inglis wrote:
> 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.
>   
Or when in cygwin, make sure your cygwin paths are first.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list