From 4fd04b13db6813010779cad3f19b0784e2e7e271 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 3 Oct 2022 11:31:32 -0600 Subject: [PATCH] More parsing... --- back/lib/ips_to_peers_rxfr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/back/lib/ips_to_peers_rxfr b/back/lib/ips_to_peers_rxfr index bf02c19..7e50633 100755 --- a/back/lib/ips_to_peers_rxfr +++ b/back/lib/ips_to_peers_rxfr @@ -35,6 +35,5 @@ while IFS= read -r line; do ipv6="$(<<<"${ips}" grep ':')" ipv4="${ipv4%%/*}" ipv6="${ipv6%%/*}" - <<<"${res}" grep -B1 " ${ipv4}" >>"${LOGFILE}" - <<<"${res}" grep -B1 " ${ipv6}" >>"${LOGFILE}" + <<<"${res}" grep -B1 " ${ipv4}\| ${ipv6}" | sed '/--/d' | cut -f2 >>"${LOGFILE}" done