startN=$1
totalN=$2
filename=$3
>${filename}
for((i=1;i<=totalN;i++))
do
echo "${startN}" >>${filename}
let startN=startN+1
done
sh genNum.sh 起始号码 号码个数 文件名
转载于:https://blog.51cto.com/357712148/2090371
startN=$1
totalN=$2
filename=$3
>${filename}
for((i=1;i<=totalN;i++))
do
echo "${startN}" >>${filename}
let startN=startN+1
done
sh genNum.sh 起始号码 号码个数 文件名
转载于:https://blog.51cto.com/357712148/2090371