|
From: | Alexandre Mulatinho |
Subject: | Re: [shell-script] Desafio shellscript - Cálculo de milivolts por metro |
Date: | Sun, 21 Aug 2016 13:38:43 -0300 |
Senhores, lanço um desafio bem simples:
Um arquivo[1] que possui valores em volts por metro e milivolts por
metro (V/m e mV/m)
O objetivo é apresentar um script que calcule o total de milivolts
coletados nesse arquivo.
Exemplo do conteúdo do arquivo:
512mV/m
1.10V/m
1.81V/m
1.97V/m
1.51V/m
1.60V/m
1.53V/m
601mV/m
1.35V/m
601mV/m
1.30V/m
1.43V/m
998mV/m
Arquivo completo: [1]: http://susepaste.org/5861625
---
Lembrando:
* 1 volt por metro = 1V/m
* 1 milivolt por metro = 1mV/m, ou 1Vm / 1000
Dica: man bc
Boa sorte a todos!
Raul Libório
http://rauhmaru.blogspot.com/
openSUSE Member | Linux User #4444581
/etc/httpd/conf.d/ssl.conf:7
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
[Prev in Thread] | Current Thread | [Next in Thread] |