mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Remove whitespaces from result
This commit is contained in:
parent
17fcfc3736
commit
424b962e14
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${SYS_LOG}" "${SYS_LOG
|
||||||
# Return -1 if any error occurs
|
# Return -1 if any error occurs
|
||||||
#
|
#
|
||||||
parseValue() {
|
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}" ]]
|
if [[ -z "${TMP_RETURN}" ]]
|
||||||
then
|
then
|
||||||
echo -1
|
echo -1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue