diff --git a/gravity.sh b/gravity.sh index 50c37784..2836ec1f 100755 --- a/gravity.sh +++ b/gravity.sh @@ -464,7 +464,7 @@ gravity_ShowBlockCount() { fi if [[ -f "${regexFile}" ]]; then - num=$(grep -c "^(?!#)" "${regexFile}") + num=$(grep -c "^[^#]" "${regexFile}") echo -e " ${INFO} Number of regex filters: ${num}" fi }