Joinc

导航

shell 文件读取批量处理

cat ./redis-keys.txt | while read myline
do
  echo ${myline}
  /usr/local/bin/redis-cli -h 000.00.00.000 -p 6379 -c set ${myline} 0
done 
cat ./urlget.txt | while read myline
do
  echo ${myline}
  curl ${myline}
  sleep 100
done

curl http://www.google.com

posted on 2019-07-12 09:07  Joinc  阅读(1040)  评论(0编辑  收藏  举报