/bin/bash^M: bad interpreter: No such file or directory sed -i -e 's/\r$//' nomefile.sh