[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Somando
From: |
Gentil de Bortoli Júnior |
Subject: |
Re: [shell-script] Somando |
Date: |
Wed, 14 Sep 2005 10:08:41 -0300 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20050602) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard, eu sugiro uma outra forma de fazer isso.
Veja:
cat a | paste -s -d + | bc
Gentil de Bortoli Júnior
KeyID: 0x8383E070 - www.keyserver.net
richardbortolucci wrote:
> Estou tentando somar alguns valores assim:
>
> # cat a
> 1
> 2
> 3
> 4
> 5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDKCDZU6AHyoOD4HARAvmaAKCuYAj7w8oG5w/S0BCObEBJMy5LqgCg4QGy
nUBbxdienjAnM/E5I/AR6PE=
=Au5t
-----END PGP SIGNATURE-----
- Somando, richardbortolucci, 2005/09/14
- Somando, Richard Bortolucci, 2005/09/14