我已在stackoverflow和jq手册上阅读了所有答案,但找不到并了解解决下一个任务需要使用哪些选项:
jq'.result [] | “ \(。name)\(。content)”':
"test.mydomain.com 123.123.123.123"
"static.mydomain.com 124.124.124.124"
"static.mydomain.com 124.124.124.128"
"mydomain.com 125.125.125.125"
"mydomain.com 125.125.125.126"
"mydomain.com 125.125.125.127"
需要从该列表中获取每个第一个值仅重复项:
"mydomain.com 125.125.125.125"
"mydomain.com 125.125.125.126"
"mydomain.com 125.125.125.127"
"static.mydomain.com 124.124.124.124"
"static.mydomain.com 124.124.124.128"
很抱歉您的时间
最诚挚的问候