convert tabs to spaces
one record per line in data
change line endings from dos to unix