Commit e1f193c4 authored by 白秀江's avatar 白秀江

更新redis_scan.sh

parent 16e7b4fa
......@@ -4,7 +4,7 @@ function delSet()
scannum=1000
#echo $rs
cursor="0"
members=`redis-cli -p $1 -a $2 sscan $key 0 count $scannum`
members=`redis-cli -h $1 -p $2 sscan $key 0 count $scannum`
while [ `echo $cursor | awk -v tem="0" '{print($1>tem)? "1":"0"}'` -eq "1" ] ; do
OLD_IFS="$IFS"
IFS=" "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment