通过 ip 查询 id信息

# 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"

你可能感兴趣的:(通过 ip 查询 id信息)