the following code worked until today when I imported from a Windows machine and got this error:
new-line character seen in unquoted field - do you need to o
Try to run dos2unix on your windows imported files first
dos2unix