I have a .CSV file which upon passing the file test_file.csv command gives the output as:test_file.csv: ISO-8859 English text, with CR line terminatorsWhen I am using cat, head or tail command on the file, it is returning me the total file content on the screen. How do I convert the line terminators so that I will be able to use these commands and use the file for further processing. Also, I was wondering if there is a way to know how this file was generated/created? Please suggest.
Unable to do head or tail for a file
linux;csv;newlines;file format
The only thing I'm aware of that commonly used a bare CR as a line terminator is old Mac systems (before Mac OS X) but unless it's a really old file that seems unlikely.In any case the mac2unix program in the dos2unix package should be able to fix it for you.