mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

Fixed some test canonifier scripts to read from stdin instead of from a filename specified as a cmd-line argument. This is needed in order to be able to reliably use them in a pipeline with other test canonifiers. Also removed some unused test canonifier scripts.
20 lines
287 B
Bash
Executable file
20 lines
287 B
Bash
Executable file
#! /usr/bin/env bash
|
|
#
|
|
# A diff canonifier that removes all connection UIDs.
|
|
|
|
awk '
|
|
BEGIN { FS="\t"; OFS="\t"; }
|
|
|
|
column > 0 {
|
|
$column = "XXXXXXXXXXX";
|
|
}
|
|
|
|
/^#/ {
|
|
for ( i = 0; i < NF; ++i ) {
|
|
if ( $i == "uid" )
|
|
column = i - 1;
|
|
}
|
|
}
|
|
|
|
{ print }
|
|
'
|