浏览代码

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

Oliver Dick 6 年之前
父节点
当前提交
1fa026b9c7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dnsapi/dns_hostingde.sh

+ 2 - 2
dnsapi/dns_hostingde.sh

@@ -46,9 +46,9 @@ _hostingde_parse() {
     notfind="${2}"
   fi
   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
-    _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
 }