Answers for "for loop iteration in shell script"

0

for loop iteration in shell script

#!/bin/bash
START=1
END=5
echo "Countdown"
 
for (( c=$START; c<=$END; c++ ))
do
	echo -n "$c "
	sleep 1
done
 
echo
echo "Boom!"
Posted by: Guest on July-17-2020

Code answers related to "for loop iteration in shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language