zeek/auxil/zeekctl/testing/Cfg/bin/compress__test
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
386 B
Bash
Executable File

#! /usr/bin/env bash
#
# This script is a test compress script (zeekctl requires that a custom
# compress command must write a transformed version of stdin to stdout).
if [ "$1" = "-i" ]; then
msg="compress option specified"
else
msg="compress no option specified"
fi
sed 's/This is a ZEEKCTL TEST/<compressed>/'
# show that command-line options are recognized
echo $msg