title: How can I use sed to perform this replacement?
body: <p>I need to replace a line in file with something</p>
  
  <pre class="lang-none prettyprint-override"><code>#Banner none
  </code></pre>
  
  <p>to</p>
  
  <pre class="lang-none prettyprint-override"><code>Banner /etc/motd
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>sed -i "s/^#Banner none/Banner /etc/motd/" /root/testfile.sh
  </code></pre>
  
  <p>which is not working. Do you know how I can do what I want?</p>