In an aws cli jmespath query, with for example the output ["a","a","b","a","b"]
, how do i extract the unique values of it to get ["a","b"]
?
It's not what you asked for but I've used the following:
aws ... | jq -r ".[]" | sort | uniq
This will convert ["a", "a", "b", "a"]
to:
a
b
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With