Skip to content

Instantly share code, notes, and snippets.

@mw866
Last active August 26, 2022 00:33
Show Gist options
  • Save mw866/cf5e30b032def75dd424216d209e1606 to your computer and use it in GitHub Desktop.
Save mw866/cf5e30b032def75dd424216d209e1606 to your computer and use it in GitHub Desktop.
#jq
# join values in object array with comma
cat file.json | jq -r '[(.policies|map(.name)|join(","))] | @csv' > file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment