From 424b962e1464bf03639f8349367d18adeb8bf0ef Mon Sep 17 00:00:00 2001 From: Cristian Deluxe Date: Wed, 2 Nov 2016 04:04:47 +0100 Subject: [PATCH] Remove whitespaces from result --- plugins/mail/postfix_stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mail/postfix_stats b/plugins/mail/postfix_stats index f0690c96..a6349347 100755 --- a/plugins/mail/postfix_stats +++ b/plugins/mail/postfix_stats @@ -81,7 +81,7 @@ TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${SYS_LOG}" "${SYS_LOG # Return -1 if any error occurs # parseValue() { - TMP_RETURN=$(echo "${TMP_RAW}" | grep -Ei '^[[:space:]]+[[:digit:]]+[[:space:]]+'"${1}"'.*$' | grep -oEi '[[:digit:]]+[[:space:]]+') + TMP_RETURN=$(echo "${TMP_RAW}" | grep -Ei '^[[:space:]]+[[:digit:]]+[[:space:]]+'"${1}"'.*$' | grep -oEi '[[:digit:]]+[[:space:]]+' | sed 's: ::g') if [[ -z "${TMP_RETURN}" ]] then echo -1