I've got a CSV file that's generated by saving as CSV from Excel. If I do "head" (or indeed "grep" or anything else) it only prints the first line:
head -n 10 messy.csv 10,15,11,21
But if I open the file in a text editor, or in Excel, it has many lines in it:
10,15,11,21 9,11,17,19 7,11,24,18 ...
head works just fine on other files on the machine.
Why is this? (I suspect it's something to do with line endings, but I don't know what.) And how can I fix it?