Check the file type, whether its a file with UNIX line endings or with Windows line endings!