title: Bash script commands become corrupt when file is made executable
body: <p>I am trying to turn the following into an executable bash script</p>
  
  <pre><code>#!/bin/bash
  
  cd ~/mlpractical
  source activate mlp
  jupyter notebook
  </code></pre>
  
  <p>after creating a .rtf file with the above, i then execute from the correct directory</p>
  
  <pre><code>chmod u+x filename
  </code></pre>
  
  <p>but everytime i then try and open the file i get an output telling me on line 1) the command is not found, on line 2) there is a syntax error etc.</p>
  
  <p>How do I make the script executable (double-clickable) and resolve this error?</p>