fix end of line encodings with perl -pi -e 's/\r\n|\n|\r/\n/g' file