#!/bin/bash let sum=0 for num in 1 2 3 4 5 do let "sum = $sum + $num" done echo $sum
Ejercicios de Bash: realizar una suma (Bash)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.