ltp循环跑

e]# cat r3.sh
#!/bin/bash
i=1
for ((; i<=1000; i++))
do
/opt/ltp/runltp -s fmtmsg01 -p -l -t -l /home/ltplogfm1000
done
echo "The i is: $i"
k=1
for ((; k<=1000; k++))
do
/opt/ltp/runltp -s rpc01 -p -l -t -l /home/ltplogrpc1000
done
echo "The k is: $i"
m=1
for ((; m<=2000; m++))
do
/opt/ltp/runltp -s fmtmsg01 -p -l -t -l /home/ltplogfm2000
done
echo "The m is: $m"
n=1
for ((; n<=2000; n++))
do
/opt/ltp/runltp -s rpc01 -p -l -t -l /home/ltplogrpc2000
done
echo "The n is: $n"

原文地址:https://www.cnblogs.com/xuanbjut/p/12862854.html