Sprawdź separator pliku

file testFile.txt

# If file reports "CRLF line terminators", the file is DOS-style
# If file reports "CR line terminators", the file is Mac-style
# If file doesn't mention line terminators, the file is Unix-style
Fahim Foysal