Bash script – "/bin/bash^M: bad interpreter: No such file or directory"

QuestionsBash script – "/bin/bash^M: bad interpreter: No such file or directory"
sethbeckerman5 Staff asked 13 years ago

I'm using this tutorial to learn bash scripts to automate a few
tasks for me.
I'm connecting to a server using putty.
The script, located in , is:

And I executed the following for

Then, when I enter , I'm getting the error given in the
title.
Some similar questions wanted to see these, so I think they might
help :

and

I tried adding the current directory to , but that doesn't
work …


View on Stack Overflow