Change regex to match "prepend" pattern

This commit is contained in:
Doctor 2020-04-29 14:41:00 +02:00 committed by Lars Kruse
parent 8939111823
commit 24f4883777
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ fi
#
function get_log_count() {
egrep "policyd-spf\[[0-9]+\]: $1;" "$LOGFILE" | grep "$(date '+%b %e')" | wc -l
egrep "policyd-spf\[[0-9]+\]:(.*) $1" "$LOGFILE" | grep "$(date '+%b %e')" | wc -l
}
PASS=$(get_log_count "Pass")