diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-05-10 13:02:28 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-05-11 13:21:46 +0100 |
commit | 27607d0311c4b32440c6a3396e4a022640dd930e (patch) | |
tree | dbd30abb97c9648d55c46c12266b5e4806dc07f0 /src | |
parent | e5903596a0f6b078f5854ca591963e21c7f7328a (diff) |
Utilities: add -G<queuename> option to exiqgrep. Bug 2397
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exiqgrep.src | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index c4f7c4b58..c8762df47 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -53,11 +53,12 @@ if ($ARGV[0] eq '--version') { exit 0; } -getopts('hf:r:y:o:s:C:zxlibRca',\%opt); +getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt); if ($ARGV[0]) { &help; exit;} if ($opt{h}) { &help; exit;} if ($opt{a}) { $eargs = '-bp'; } if ($opt{C} && -e $opt{C} && -f $opt{C} && -R $opt{C}) { $eargs .= ' -C '.$opt{C}; } +if ($opt{G}) { $eargs .= ' -qG'.$opt{G}; } # Read message queue output into hash &collect(); @@ -83,6 +84,7 @@ Selection criteria: -o <seconds> Message older than -z Frozen messages only (exclude non-frozen) -x Non-frozen messages only (exclude frozen) + -G <queuename> Match in given queue only [ NB: for regexps, provided string sits in /<string>/ ] |