Update f2bt

This commit is contained in:
2026-07-23 01:22:32 +00:00
parent 8ac9f1c7c8
commit caee50d290
+2 -2
View File
@@ -6,7 +6,7 @@ set -euo pipefail
clear clear
##CONFIG ##CONFIG
log="${1:-/var/log/fail2ban.log}" log="${sudo 1:-/var/log/fail2ban.log}"
##CHECK ##CHECK
if [[ ! -f "$log" ]]; then if [[ ! -f "$log" ]]; then
@@ -35,6 +35,6 @@ END {
} }
' "$log" | column -t -R 2 ' "$log" | column -t -R 2
echo "---------------------------" echo "---------------------------"
tot=$(sudo wc -l < "$log" | sudo tr -d ' ') tot=$(wc -l < "$log" | tr -d ' ')
printf "TOTAL: %s LINES\n" "$tot" printf "TOTAL: %s LINES\n" "$tot"
echo "===========================" echo "==========================="