Use grep invert-match

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2334/head
DL6ER 6 years ago
parent 5bf90cb77d
commit 760dd01b50
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -464,7 +464,7 @@ gravity_ShowBlockCount() {
fi
if [[ -f "${regexFile}" ]]; then
num=$(grep -c "^[^#]" "${regexFile}")
num=$(grep -cv "^#" "${regexFile}")
echo -e " ${INFO} Number of regex filters: ${num}"
fi
}

Loading…
Cancel
Save