Browse Source

using ' ' instead of '[:space:]' for tr

dnsconf
Oliver Dick 6 years ago
parent
commit
1fa026b9c7
  1. 4
      dnsapi/dns_hostingde.sh

4
dnsapi/dns_hostingde.sh

@ -46,9 +46,9 @@ _hostingde_parse() {
notfind="${2}" notfind="${2}"
fi fi
if [ "${notfind}" ]; then if [ "${notfind}" ]; then
_egrep_o \""${find}\":.*" | grep -v "${notfind}" | cut -d ':' -f 2 | cut -d ',' -f 1 | tr -d '[:space:]'
_egrep_o \""${find}\":.*" | grep -v "${notfind}" | cut -d ':' -f 2 | cut -d ',' -f 1 | tr -d ' '
else else
_egrep_o \""${find}\":.*" | cut -d ':' -f 2 | cut -d ',' -f 1 | tr -d '[:space:]'
_egrep_o \""${find}\":.*" | cut -d ':' -f 2 | cut -d ',' -f 1 | tr -d ' '
fi fi
} }

Loading…
Cancel
Save