title: Using a shell script, How insert a line in a file which starts with a hash?
body: <p>I'm trying to insert a line of text beginning with a hash in a text file using a shell script, using something like this:</p>
  
  <pre><code>ex run &lt;&lt;EOEX
  :i
  #!/bin/bash
  #SBATCH
  .
  :x
  EOEX
  
  </code></pre>
  
  <p>But I want it to actually insert those lines beginning with the hash, and not treat them as comments. Thanks!</p>