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

6 lines
273 B
Bash
Executable File

#! /usr/bin/env bash
#
# Replace anything which looks like timestamps with XXXs (including the #start/end markers in logs).
sed -E -e 's/(^|[^0-9])([0-9]{9,10}\.[0-9]{1,8})/\1XXXXXXXXXX.XXXXXX/g' -e 's/^ *#(open|close).(19|20)..-..-..-..-..-..$/#\1 XXXX-XX-XX-XX-XX-XX/g'