work_sript/03.template/template_loop.sh
2024-07-29 14:10:33 +08:00

25 lines
393 B
Bash

#/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