I am pretty new here and learning programming. I wonder if there is a way to see the action of a shell script as it is executed? For example, I want to see how the values are inserted into the variables in this script.
#!/bin/bash
# Script: potenz2.sh (powers of two with a while loop)
i=0
j=1
while (( i < 12 ))
do
j=$((j * 2))
echo -n "$j"
i=$((i+1))
done
echo ""