Last active
August 26, 2022 00:33
-
-
Save mw866/cf5e30b032def75dd424216d209e1606 to your computer and use it in GitHub Desktop.
#jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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