Our datalogger saves files in a windows format, which means when I open it in a unix program, I don’t see any line feeds. The quick solution to this is to open the file in vim and run:

:%s/\r/\r/g

which will make things look nice and neat.

A second problem I had was that I’m using gnuplot to plot the files. The datafile has the date and time in separate columns, which is ok. But since these columns are separated by a tab and not just whitespace, gnuplot doesn’t parse them correctly. To change all the tabs to spaces, run:

:%s\/t/ /g