title: Append to /etc/apt/sources.list
body: <p>I'm creating some scripts to streamline application installations and I need to append to the end of /etc/apt/sources.list</p>
  
  <p>This code below append to files in ~ but not in /etc/apt/</p>
  
  <pre><code>echo "deb http://ppa.launchpad.net/person/ppa/ubuntu karmic main" &gt;&gt; /etc/apt/sources.list
  </code></pre>
  
  <p><strong>@meder</strong></p>
  
  <p>I have tried these following commands with no luck:</p>
  
  <pre><code>sudo echo "deb http://ppa.launchpad.net/person/ppa/ubuntu karmic main" &gt;&gt; /etc/apt/sources.list
  #===---
  sudo sh "echo 'deb http://ppa.launchpad.net/person/ppa/ubuntu karmic main' &gt;&gt; /etc/apt/sources.list"
  </code></pre>