I was wondering if somebody could help me with this sed regex expression.
{"ok":false,"error":"invalid_arguments","response_metadata":{"messages":["[ERROR] missing required field: channel "]}}
From the following json, I need to extract the value corresponding to ok. Here it is false
.
To do this, I use the sed -n '/"ok":[\w]*/p'
regex but it doesn't work..
I'm new the sed and regex expression.. Is there somebody to help me??