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
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:
> >>
2 matches
Mail list logo