diff options
author | lgmu <80966566+lgmu@users.noreply.github.com> | 2023-01-19 10:33:25 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2023-01-20 08:11:26 (GMT) |
commit | db1f87c39e0ff0d76d13babfcbb332c4cc3ad0fe (patch) | |
tree | 07af50a233d55c38a6a22ffa460de159270ebf17 /gl/m4/sha1.m4 | |
parent | f4930aee28ccb664691809e7dcc9198eb81429c5 (diff) | |
download | monitoring-plugins-db1f87c39e0ff0d76d13babfcbb332c4cc3ad0fe.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/m4/sha1.m4')
0 files changed, 0 insertions, 0 deletions