4
Possible Duplicate:
Convert CRLF’s to line feeds on Linux
I have several scripts that produce a /bin/sh^M bad interpreter
error message when they are run. I believe this is because they are formatted with the Windows/DOS line termination instead of the line termination expected by Unix/Linux (Ubuntu 9.04 for an embedded system in my case).
Is there an easy way to convert text files from the Windows/DOS format to the Unix format in a Linux environment?
same question with some alternate answers: http://superuser.com/questions/52044/convert-crlfs-to-line-feeds-on-linux
– quack quixote – 2009-10-08T21:04:33.650