/
linux

linux

Error running .sh file

If you get this type of error :

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

cause : it’s probably because you have opened the .sh file in windows

solution : from a terminal: sed -i -e 's/\r$//' myfile.sh

 

 

Related content

Python
Python
More like this
compilation matlab + spm
compilation matlab + spm
More like this
Pathin
Pathin
More like this
How to run an App on Brainlife
How to run an App on Brainlife
More like this
Setting up your linux environment
Setting up your linux environment
More like this
Create a linux script
Create a linux script
More like this