I have some text files copied out to a server. I typically use and prefer notepad++ to look at text files but on this server, only textpad is installed. This is really strange behavior but I noticed that when I view the EOL chars in notepad++ I can clearly see and search for the CRLF (i.e. \r\n). But when I display the same files in textpad, I am able to search only on the LF (\n) and do not have any hits on the CR (\r). Am I missing something on how Textpad is interpreting the EOL chars?
This happens when the EOL control characters are not correct. Windows represents newlines with the carriage return + line feed.
In Notepad++, you can check for these characters by selecting:
View > Show Symbols > [x] Show End of Line
You need to modify your script so your data is formatted like this:
CRLF