Hello,
How can I do it on a recursive way? (Function ''plus'' needs to call itself)
#!/bin/bash
function plus
{
let GLOBAL=$GLOBAL+$1
}
GLOBAL=0
n=$1
for ((i=1; i<=n; i++))
do
plus $i
done
echo Answer: $GLOBAL
Any help is welcome!
Regards,
trume