From 0887a906ca7c2fcc87846f2f5bf5dc2b36efb290 Mon Sep 17 00:00:00 2001 From: Stephan Geisler Date: Tue, 24 Sep 2019 22:09:15 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eupdate=5Fblocklist.sh=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_blocklist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_blocklist.sh b/update_blocklist.sh index 4c17f60..b3b0a07 100644 --- a/update_blocklist.sh +++ b/update_blocklist.sh @@ -75,7 +75,8 @@ while read BLOCKED_IP if [[ $LOGLEVEL -eq 1 ]] || [[ $LOGLEVEL -eq 2 ]]; then END=$(date +%s) RUNTIME=$((END-UNIXTIME)) - echo -e + echo -e; + echo "stats:----------------------------------" echo "duration of the process: $RUNTIME Seconds" echo "count of IPs in list: $(cat "/tmp/onlinelist.txt" | grep -Eo "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | wc -l)" echo "count of diffs: $(cat "/tmp/blocklist.txt" | grep -Eo "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | wc -l)"