add ( script : template_loop.sh)

This commit is contained in:
Missing 2024-07-29 14:10:33 +08:00
parent 355daa739e
commit 135cb1b56a
2 changed files with 29 additions and 1 deletions

@ -0,0 +1,25 @@
#/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

@ -13,4 +13,7 @@
- 使用YAFU带内升级BMC [inband_stress_update.sh](./01.stress_script/inband_stress_update.sh)
### nicsensor
- M7服务器BMC读取网卡传感器 [nicsensor.sh](./02.nicsensor/nicsensor.sh)
- M7服务器BMC读取网卡传感器 [nicsensor.sh](./02.nicsensor/nicsensor.sh)
### 脚本模板
- 简单的循环模板 [template_loop.sh](./03.template/template_loop.sh)