Change regex to match "prepend" pattern
This commit is contained in:
parent
8939111823
commit
24f4883777
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue