Révision 424b962e
Remove whitespaces from result
| 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