You're viewing a comment by Peter 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 handle, if you have one.)

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

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