Re: Grep can't match characters before EOL marker without ^M

2018-01-03 Thread arrl via cygwin
On 1/3/2018 12:31 PM, David Karr wrote: > My cygwin version appears to be "2.9.0(0.318/5/3)". > > If I have a text file that has a line that ends with "abc", and I try > to grep for "abc$", it doesn't match. I find that it does match "$" > and "abc^M$". > > I've read some of the documentation ab

Re: Grep can't match characters before EOL marker without ^M

2018-01-03 Thread Brian Inglis
On 2018-01-03 10:31, David Karr wrote: > If I have a text file that has a line that ends with "abc", and I try to grep > for "abc$", it doesn't match. I find that it does match "$" and "abc^M$". > I've read some of the documentation about line endings in Cygwin. > I need to write some scripting tha

Grep can't match characters before EOL marker without ^M

2018-01-03 Thread David Karr
My cygwin version appears to be "2.9.0(0.318/5/3)". If I have a text file that has a line that ends with "abc", and I try to grep for "abc$", it doesn't match. I find that it does match "$" and "abc^M$". I've read some of the documentation about line endings in Cygwin. I need to write some scri