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

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Ballon
Date:  
To: Main PLUG discussion list
Subject: Re: does '>>' append directly after or put it on a new line
$ touch test
$ echo "1" > test
$ echo "2" >> test
$ cat test

1
2

On Mon, Mar 9, 2015 at 3:46 PM, Michael Havens <> 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 -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss