zeek/auxil/zeekctl/testing/Scripts/diff-update-output
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
285 B
Bash
Executable File

#! /usr/bin/env bash
#
# Replace unpredictable "zeekctl update" output with a constant string.
awk '{
if ( $1 != "updating" )
{
if ( $0 ~ /sent [0-9][0-9]* ID/ || $0 ~ /processing suspended/ )
{
$0 = $1 " (SOMETHING)"
}
}
print
}'