zeek/auxil/spicy/tests/Scripts/canonify-spicy-debug
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

10 lines
292 B
Bash
Executable File

#! /bin/sh
#
# Canonifies spicy-verbose debug output for baseline diffing.
cat \
| sed 's/stream=0x[0-9a-z]\{2,\} /stream=0xXXXXXXXX /g' \
| sed 's/for stream 0x[0-9a-z]\{2,\}/for stream 0xXXXXXXXX/g' \
| sed 's/\(memory *: \).*/\1XXX/g' \
| sed 's/^\(# *user_time=\).*/\1XXX .../g'