if test $# -lt 1
then
echo "Please input a valid amount of numbers. Need at least one."
exit 1
else
args=0
while args -eq "$#"; do
echo $args
shift
done
fi
echo $sum
echo $n
The error I'm receiving is
./whileParamList: 15: ./whileParamList: args: not found
The while loop will increment to the previous parameter with a +=
args=o
does not look good. – George Vasiliou Jan 31 '17 at 00:360
sorry about that.. .still not the problem. – Chris Zog Jan 31 '17 at 00:38