Package of the week: tofrodos

# ./startup.sh
-bash: ./startup.sh: /bin/sh^M: bad interpreter: No such file or directory

The startup.sh is edited by a DOS editor, which has different treatment for line ending, and thus shell on Linux don’t like it and wont work.

You’ll need to convert the file into Linux/Unix format before run it. Here’s how:

dos2unix startup.sh

or

fromdos startup.sh

If you have a file want to convert into DOS mode, use this

unix2dos startup.bat

or

todos startup.bat

If you don’t have the package installed, run this:

apt-get install tofrodos

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer