#!/bin/bash
PrintHelp()
{
echo FORMAT: command arg
echo NOTE: the arg must be number
echo such as : command 100000
return
}
if [ $# -lt 1 ]; then
PrintHelp
exit -1
fi
if [[ $1 == *[!0-9]* ]]; then
echo " the arg must be number"
exit -1
fi
echo `date +%Y%m%d%H%M%S` - INFO - 101 - 0 - 25002 - 600061470 - 98765432101
echo `date +%Y%m%d%H%M%S` - INFO - 101 - 0 - 25002 - 600061471 - 98765432102
a=600000000
b=13810100000
c=0
for (( i=2; i<$1; i++ ))
do
c=`expr $i % 10000`
if [ $c == 1 ]
then
echo `date +%Y%m%d%H%M%S` - INFO - 101 - 0 - 25002 - 601071468 - 98765432103
echo `date +%Y%m%d%H%M%S` - INFO - 101 - 0 - 25002 - 601071469 - 98765432104
fi
let x=$a+$i
let y=$b+$i
echo `date +%Y%m%d%H%M%S` - INFO - 101 - 0 - 46000 - $x - $y
sleep 0.08
done
阅读(1430) | 评论(0) | 转发(0) |