codice:#!/bin/bash file=lista_numeri totale=0 for i in $(cat $file); do totale=$( echo "$totale + $i" | bc -l) done echo "totale = "$totale exit 0![]()
codice:#!/bin/bash file=lista_numeri totale=0 for i in $(cat $file); do totale=$( echo "$totale + $i" | bc -l) done echo "totale = "$totale exit 0![]()
powered by GNU/Linux Gentoo
A Elbereth Gilthoniel o menel palan-diriel, le nallon sí di-nguruthos! A tiro nin, Fanuilos!