Find Jobs
Hire Freelancers

Calculate the sum of 200 variables VAR_01 the VAR_200 in bash script

$10-40 USD

Terminado
Publicado hace más de 9 años

$10-40 USD

Pagado a la entrega
I have 100 variables, created in VAR_01 to VAR_100 by another script. Necessary to add the final value of them. That's it ..... I've tried -------------------------------------------------------------------------- !/bin/bash for i in $(seq 1 100) do COUTER=`echo "$COUTER + $VAR_$i" | bc` done -------------------------------------------------------------------------- but not works !!!! These variables were 100 are created by another scrit, which runs before that party must do the sum. I would like to find the best way to do this safely and efficiently.
ID del proyecto: 7042591

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
That's a real easy fix - I can do it in 5 minutes. I've been writing bash for 20 years. I just did a script doing the same work.
$15 USD en 0 día
5,0 (4 comentarios)
2,1
2,1
4 freelancers están ofertando un promedio de $23 USD por este trabajo
Avatar del usuario
Please explain it a little better what is var_01 to var_100 are they files? Do you want to count all variables and in an output file and write the final value at the end of the file? Regards usman
$30 USD en 1 día
5,0 (109 comentarios)
7,2
7,2
Avatar del usuario
A proposal has not yet been provided
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
A proposal has not yet been provided
$20 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de BRAZIL
Natal, Brazil
5,0
10
Forma de pago verificada
Miembro desde ene 6, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.