title: Sed command to add line of text to the very end of a file
body: <p>I want to use sed to add a line of text to the very end of a file. In this case I am working on OS X and I want to add a line in the /etc/sudoers files. I want my string to be the last string in the file on its own line. Any ideas?</p>
  
  <p>Example:</p>
  
  <pre><code>text 
  text 
  text
  &lt;my string&gt;
  </code></pre>
  
  <p>Thanks.</p>