16 lines
386 B
Bash
Executable File
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
|