title: Bash script and /bin/bash^M: bad interpreter: No such file or directory
body: <p>I'm learning through this tutorial to learn <a href="http://linuxcommand.org/wss0010.php" rel="noreferrer">bash scripts</a> to automate a few tasks for me. I'm connecting to a server using putty.</p>
  
  <p>The script, located in <code>.../Documents/LOG</code>, is:</p>
  
  <pre><code>#!/bin/bash
  # My first script
  echo "Hello World!"
  </code></pre>
  
  <p>And I executed the following for <code>read/write/execute permissions</code></p>
  
  <pre><code>chmod 755 my_script
  </code></pre>
  
  <p>Then, when I enter <code>./my_script</code>, I'm getting the error given in the title.</p>
  
  <p>Some similar questions wanted to see these, so I think they might help:</p>
  
  <pre><code>which bash
  </code></pre>
  
  <blockquote>
    <p><code>/bin/bash</code></p>
  </blockquote>
  
  <p>and</p>
  
  <pre><code>echo $PATH
  </code></pre>
  
  <blockquote>
    <p><code>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/mh</code></p>
  </blockquote>
  
  <p>I tried adding current directory to <code>PATH</code>, but that doesn't work..</p>