zeek/auxil/zeekctl/testing/Scripts/diff-zeekctl-config
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

10 lines
508 B
Bash
Executable File

#! /usr/bin/env bash
#
# This script replaces values that change between test runs in
# zeekctl-config.zeek with the string XXXXXXXX.
sed -e 's/global_hash_seed = "[0-9a-f]*"/global_hash_seed = "XXXXXXXX"/' \
-e 's/Cluster::default_store_dir = ".*"/Cluster::default_store_dir = "XXXXXXXX"/' \
-e 's/Broker::table_store_db_directory = ".*"/Broker::table_store_db_directory = "XXXXXXXX"/' \
-e 's/FileExtract::prefix = ".*\/" + Cluster::node;/FileExtract::prefix = "XXXXXXXX\/" + Cluster::node;/'