[英]how to combine a value with each of the element of another array in a JSON using jq?
JSON 像这样:
[
{
"id": 1,
"names": [
"apple",
"google"
]
},
{
"id": 2,
"names": [
"iphone",
"ipad",
"macbook"
]
}
]
tsv 中的预期 output
1 apple
1 google
2 iphone
2 ipad
2 macbook
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.