title: sed add line at the end of file
body: <p>I trying to add a line at the end of file (/root/test.conf) with sed. I use FreeBSD and when I try to add a simple line, I always get several errors like:</p>
  
  <ul>
  <li>extra characters at the of command</li>
  <li>undefined label 'est.conf'</li>
  </ul>
  
  <p>The file is like this:</p>
  
  <pre><code>#Test
  firstLine
  secondLine
  
  !p.p
  *.*
  </code></pre>
  
  <p>And I want to add something like this:</p>
  
  <pre><code>(return \n)
  !word
  other (5 tab between "other" and "/usr/local") /usr/local
  </code></pre>
  
  <p>If it's not possible with sed, there are another options?</p>
  
  <p>Thank you!</p>