On 28/02/12 15:16, lina wrote:
On Tue, Feb 28, 2012 at 10:10 PM, Lorenzo Sutton
<lorenzofsut...@gmail.com> wrote:
On 28/02/12 15:06, lina wrote:
Hi,
I wonder:
1]
can the output like:
5
3
1
5
3
direct it into the LibreOffice directly. without copy and paste.
2]
Is it possible to do a quick sum calculations for some output on terminal.
like the sum of
3
16
3
3
9
Thanks for your suggestions,
I think it would be a little easier if you depicted the scenario ;)
I am not quite so sure about "depicted the scenario", the problem I
faced is that
$ somescipt | awk '{print $1}'
[u'5',
1.0
2.0
2.0
2.0
1.0
2.0
2.0
1.0
1.0
1.0
2.0
3.0
1.0
1.0
2.0
2.0
1.0
2.0
2.0
2.0
2.0
2.0
1.0
I am interested the sum of those numbers. so curious are there some quick way.
No awk expert, but I'd bet it can do sums... Have a look at this:
http://stackoverflow.com/questions/3096259/bash-command-to-sum-a-column-of-numbers
Lorenzo.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f4ced7c.6020...@gmail.com