Created
May 27, 2021 03:23
-
-
Save ozuma/02f5bb11f0a2fcd3ee02d2b820735c43 to your computer and use it in GitHub Desktop.
json2csv.sh
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
jq -c < sample.json | jq -r "[.ip, .country, .city]|@csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment