Ho bisogno di analizzare il jsonarray usando regex. My json isParsing JSON nello script di shell con regex
"keys": [
{
"host": "example.com"
},
{
"host": "example.net"
}
]
Ho bisogno di ottenere i due valori di host.
Se fosse corretto json (ad esempio, avvolto in '{}'); potresti usare ['jq -r '.keys [] | .host''] (http://stedolan.github.io/jq/) – jfs