@terdon Because there isn't enough info in the question to answer it? You could say that error is almost always from a stray CRLF pair and thus answer anyway—but then it'd be a duplicate
I've created a bash script but when I try to execute it, I get
#!/bin/bash no such file or directory
I need to run the command: bash script.sh for it to work.
How can I fix this?