mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Not the not_before/not_after fields output GMT based times. Also adds a new btest diff canonifier which only removes the first timestamp in a line. Fixes GH-4521
5 lines
264 B
Bash
Executable file
5 lines
264 B
Bash
Executable file
#! /usr/bin/env bash
|
|
#
|
|
# Replace the first timestamp in a line 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/' -e 's/^ *#(open|close).(19|20)..-..-..-..-..-..$/#\1 XXXX-XX-XX-XX-XX-XX/'
|