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
2310a9bb
Commit
2310a9bb
authored
Apr 30, 2017
by
shar0119
Committed by
GitHub
Apr 30, 2017
Browse files
Removed grep -Po
Removed usage of grep -Po.
parent
5b3e3d9c
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_dynu.sh
View file @
2310a9bb
...
...
@@ -149,7 +149,7 @@ _get_recordid() {
return
0
fi
_dns_record_id
=
$(
printf
"%s"
"
$response
"
| _egrep_o
"{[^}]*}"
|
grep
"
\"
text_data
\"
:
\"
$txtvalue
\"
"
|
grep
-Po
'"id":
\K[0-9]+'
)
_dns_record_id
=
$(
printf
"%s"
"
$response
"
| _egrep_o
"{[^}]*}"
|
grep
"
\"
text_data
\"
:
\"
$txtvalue
\"
"
|
_e
grep
_o
",[^,]*,"
|
grep
'
,
"id":
'
|
tr
-d
",,"
|
cut
-d
:
-f
2
)
return
0
}
...
...
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