You're viewing a comment by Peteris Krumins and its responses.

May 09, 2011, 06:33

It reads in the line without the trailing LF. I was just preparing my Awk One-Liners e-book and noticed that I had explained it incorrectly before. When a line gets read in $0, LF gets stripped, so if it ended with CRLF, then now it ends with CR and \r$ matches that CR.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "antispam": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.