From eeb21f30b84f80d0f61b57ea6fb47f038d3afd6a Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Sat, 22 May 2021 18:10:44 -0500 Subject: [PATCH] updated deprecated egrep command --- tab-sorcery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tab-sorcery.sh b/tab-sorcery.sh index 10c21d4..9e244b8 100644 --- a/tab-sorcery.sh +++ b/tab-sorcery.sh @@ -39,7 +39,7 @@ get_hostip () { # return 1 #fi -zone_xfer=`{dig $scan_domain @$scan_ns +time=$dns_time +tries=$dns_tries AXFR || echo $dns_fail_text >&2} | egrep -v 'SOA|NS|MX|DiG' | grep $scan_domain | awk '{print $1,$4,$5}'` +zone_xfer=`{dig $scan_domain @$scan_ns +time=$dns_time +tries=$dns_tries AXFR || echo $dns_fail_text >&2} | grep -Ev 'SOA|NS|MX|DiG' | grep $scan_domain | awk '{print $1,$4,$5}'` while read host <&3; do user_name=$3 connect_cmd="ssh -t"