#/bin/sh ### About this script # A simple loop example to use loop_cnt=0 final_cnt=500 while true do loop_cnt=$(($loop_cnt)) echo "------------------------------------" echo "Loop Index : $loop_cnt" # todo [start] # todo [end] if [ $loop_cnt -eq $final_cnt ];then echo "Complete execute the script, exit ..." break fi sleep 1 done