zeek/auxil/package-manager/testing/scripts/diff-remove-timestamps
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

14 lines
345 B
Bash
Executable File

#! /usr/bin/env bash
#
# Replace timestamps in the zkg log with XXXs. Note, this is different
# from the canonifier used in the Zeek distribution.
# Get us "modern" regexps with sed.
if [ `uname` == "Linux" ]; then
sed="sed -r"
else
sed="sed -E"
fi
$sed -e 's/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/XXXX-XX-XX XX:XX:XX/'