Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d7cafe25
Unverified
Commit
d7cafe25
authored
Nov 26, 2020
by
Lorenz Stechauner
Committed by
GitHub
Nov 26, 2020
Browse files
World4You using _egrep_o
parent
2e97b20f
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
d7cafe25
...
@@ -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