Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
f3b5d5ab
Commit
f3b5d5ab
authored
Nov 26, 2020
by
Lorenz Stechauner
Browse files
World4You using _egrep_o
parent
8ee5726e
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
f3b5d5ab
...
@@ -15,7 +15,7 @@ dns_world4you_add() {
...
@@ -15,7 +15,7 @@ dns_world4you_add() {
_debug fulldomain
"
$fqdn
"
_debug fulldomain
"
$fqdn
"
_debug txtvalue
"
$value
"
_debug txtvalue
"
$value
"
tld
=
$(
echo
"
$fqdn
"
|
grep
-
o
'[^.]*\.[^.]*$'
)
tld
=
$(
echo
"
$fqdn
"
|
_e
grep
_
o
'[^.]*\.[^.]*$'
)
record
=
$(
echo
"
$fqdn
"
|
cut
-c
"1-
$((${#
fqdn
}
-
${#
tld
}
-
1
))
"
)
record
=
$(
echo
"
$fqdn
"
|
cut
-c
"1-
$((${#
fqdn
}
-
${#
tld
}
-
1
))
"
)
_login
_login
...
@@ -69,7 +69,7 @@ dns_world4you_rm() {
...
@@ -69,7 +69,7 @@ dns_world4you_rm() {
_debug fulldomain
"
$fqdn
"
_debug fulldomain
"
$fqdn
"
_debug txtvalue
"
$value
"
_debug txtvalue
"
$value
"
tld
=
$(
echo
"
$fqdn
"
|
grep
-
o
'[^.]*\.[^.]*$'
)
tld
=
$(
echo
"
$fqdn
"
|
_e
grep
_
o
'[^.]*\.[^.]*$'
)
record
=
$(
echo
"
$fqdn
"
|
cut
-c
"1-
$((${#
fqdn
}
-
${#
tld
}
-
1
))
"
)
record
=
$(
echo
"
$fqdn
"
|
cut
-c
"1-
$((${#
fqdn
}
-
${#
tld
}
-
1
))
"
)
_login
_login
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment