Grep and matching end of line (anchoring)

2004-11-19 Thread Dalton, Barnaby
I'm having trouble gettting grep to match end of line when used with files/utlilities that use DOS linefeeds. For example: cat files.txt | grep '\.h$' produces no output. However, if I stick a filter in the middle to change the line endings: cat files.txt | perl -pe 's/\r\n/\n/' | grep '\.h$' I

RE: Grep and matching end of line (anchoring)

2004-11-22 Thread Dalton, Barnaby
end of line (anchoring) > > > At Friday, November 19, 2004 7:41 AM, Reini Urban wrote: > > Dalton, Barnaby schrieb: > >> I'm having trouble getting grep to match end of line when used with > >> files/utilities that use DOS linefeeds. For example: > >>