I am having trouble with Windows files running as part of a shell script on a Linux box and I was wondering if it is possible to "convert" a Windows created file to a Linux one using Java or possibly a Linux command?
For example:
If I upload a CSV file created in Windows, then on the server using nano
I can see the file was saved in DOS Format. I can toggle between DOS and Linux format using M-D
and save it as a Linux file.
My question is whether it is possible to achieve this via Java (<-preference) or through a Linux command?
I have tried stripping carriage returns sed -i 's/{ctrl-v}{ctrl-m}//g' [file]
but this does not help with the issue.