dos2unix is used when converting files that were created in windows and haven't been converted. You might get an error such as:
Convert the file to unix:
If you want to do a whole directory recursively:
-bash: ./setup.sh: /bin/bash^M: bad interpreter: No such file or directory
Convert the file to unix:
dos2unix [filename]
If you want to do a whole directory recursively:
find . -type f -exec dos2unix {} \;
Comments
Post a Comment