title: How to add a line into rc.local with shell
body: <p>I am working on a Ubuntu 12.04 and writing a environment-auto-build shell. In the shell I need to change something in rc.local.</p>
  
  <p>This is my rc.local now.</p>
  
  <pre><code>#!/bin/sh -e
  #......
  
  exit 0
  </code></pre>
  
  <p>I want to modify it like this:</p>
  
  <pre><code>#!/bin/sh -e
  #......
  
  nohup sh /bocommjava/socket.sh &amp;
  
  exit 0
  </code></pre>
  
  <p>Now I use nano to modify it, is there any <strong>command</strong> that can <strong>insert</strong> the line into rc.local?</p>