How to loop over jq unique array in bash?
问题 I'm trying to loop over unique names and commit messages from a github json object. However when there are spaces in the arrays bash will treat them as individual array items #!/usr/bin/env bash commits='[ { "author": { "email": "email@example.com", "name": "Chris", "username": "chris" }, "committer": { "email": "email@example.com", "name": "Chris", "username": "chris" }, "message": "commit message 1" }, { "author": { "email": "email@example.com", "name": "John", "username": "jdoe" },