diff options
author | lgmu <80966566+lgmu@users.noreply.github.com> | 2023-01-19 11:33:25 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2023-01-20 09:11:26 +0100 |
commit | db1f87c39e0ff0d76d13babfcbb332c4cc3ad0fe (patch) | |
tree | 07af50a233d55c38a6a22ffa460de159270ebf17 /gl/strerror-override.h | |
parent | f4930aee28ccb664691809e7dcc9198eb81429c5 (diff) | |
download | monitoring-plugins-db1f87c.tar.gz |
Added --exclude, cleanup args, fix -a count bug
Added --exclude to exclude patterns
Cleaned up duplicated code in the args
Fixed a bug when using --all because the count always returned "1" even when nothing matched
entry=$($GREP "$query" "$tempdiff")
count=$(echo "$entry" | wc -l)
Example:
$ touch testfile
$ TEST123=$(grep 'test' testfile)
$ echo "$TEST123" | wc -l
1
Diffstat (limited to 'gl/strerror-override.h')
0 files changed, 0 insertions, 0 deletions