does '>>' append directly after or put it on a new line

Mike Ballon mike.ballon at gmail.com
Mon Mar 9 13:05:29 MST 2015


$ touch test
$ echo "1" > test
$ echo "2" >> test
$ cat test

1
2

On Mon, Mar 9, 2015 at 3:46 PM, Michael Havens <bmike1 at gmail.com> wrote:

> all of my instructions for reinstalling my computers is saved into a text
> file for each computer. the pi is a new computer and I am doing it slightly
> different. Here is what I have written:
>
> sudo echo 'deb http://archive.mene.za.net/raspbian wheezy contrib' >>
> /etc/apt/sources.list
> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
> sudo apt-get update
> sudo apt-get install kodi
>
> All I want is to verify that:
>
> sudo echo 'deb http://archive.mene.za.net/raspbian wheezy contrib' >>
> /etc/apt/sources.list
>
> will put the:
>
> deb http://archive.mene.za.net/raspbian wheezy contrib
>
> on it's own line. I have always edited sources.list rather than use '>>'
> previously.
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150309/bcae47e1/attachment.html>


More information about the PLUG-discuss mailing list