通过 ip 查询 id信息
2018-06-19 本文已影响0人
HelloWorld_26
# find etcd/ |xargs grep -ri "IP" |grep -ri "redis" |awk -F":" '{print $2,$3}' |awk -F"/" '{print $3,$4}’
# find etcd/ |xargs grep -rE "IP|redis_db" |awk -F"/" '{print $3,$4}' |grep -w "redis=IP" -A 3 |sort -u | egrep "redis_db"