#! /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//' # show that command-line options are recognized echo $msg