shell脚本循环插入参数到另外一个shell脚本
#!/bin/bash
cd /var/lib/hadoop-hdfs/reflush
array=(0 1 2)
for(( i=0;i<${#array[@]};i++)) do
startKey=${array[i]}
let n=i+1
let m = ${#array[*]}
if [ "$n" -eq "$b" ]
then break
fi
endKey=${array[n]}
echo "/var/lib/
原创
2022-04-21 14:49:53 ·
864 阅读 ·
0 评论