The form lines s is designed to break lines correctly when the file follows the Unix, MS-DOS, or Macintosh convention and contains no extraneous isolated newline or return characters. In other words, it will break a line at "\r\n", "\n", or "\r".
The string nl should be a string of length 1 or 2.
See also newline.