Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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!"
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #loop #iteration #shell #script
ADD COMMENT
Topic
Name
5+9 =