post image :date_long | 1 min Read

How to detect duplicates using jq

yq -o=json eval  data/aaa/bbb.yaml | jq '.ldap.ldap.members  | group_by(.) | map(select(length>1) | .[0])'

202405102105

author image

Jan Toth

I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …

comments powered by Disqus