Projet

Général

Profil

Révision 424b962e

ID424b962e1464bf03639f8349367d18adeb8bf0ef
Parent 17fcfc37
Enfant 918602cd

Ajouté par Cristian Deluxe il y a environ 9 ans

Remove whitespaces from result

Voir les différences:

plugins/mail/postfix_stats
81 81
# Return -1 if any error occurs
82 82
#
83 83
parseValue() {
84
	TMP_RETURN=$(echo "${TMP_RAW}" | grep -Ei '^[[:space:]]+[[:digit:]]+[[:space:]]+'"${1}"'.*$' | grep -oEi '[[:digit:]]+[[:space:]]+')
84
	TMP_RETURN=$(echo "${TMP_RAW}" | grep -Ei '^[[:space:]]+[[:digit:]]+[[:space:]]+'"${1}"'.*$' | grep -oEi '[[:digit:]]+[[:space:]]+' | sed 's: ::g')
85 85
	if [[ -z "${TMP_RETURN}" ]]
86 86
		then
87 87
		echo -1

Formats disponibles : Unified diff