mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +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
|
||||
#
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue