0
Ich habe folgendes Json:JQ Sie: TXT-Datei mit json Informationen
[{
"_id": {
"$oid": "59c3942baeef22b03fa573d2"
},
"client_id": "[email protected]",
"name": "Windows Client"
},
{
"_id": {
"$oid": "59c3942baeef22b03fa573d2"
},
"client_id": "[email protected]",
"name": "Linux Client"
}]
Ich mag folgende Ausgabe:
mongo_customers,[email protected]
mongo_customers,[email protected]
Ich habe tryed folgende aber es funktioniert nicht Arbeit:
jq -n -R \
--slurpfile mongo mongo.json \
'
$mongo[][].client_id] as $mongo_ids
"mongo_customers,customer="($mongo_ids)
'
Wie kann ich das tun?