Created
June 20, 2016 20:22
-
-
Save greymd/9f229b19b9b49c5d1cab8b95ded1552a to your computer and use it in GitHub Desktop.
Parse CSV input with jq
This file contains hidden or 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
$ echo "1,2,3\n4,5,6" | jq -R 'split(",")' | |
# result | |
[ | |
"1", | |
"2", | |
"3" | |
] | |
[ | |
"4", | |
"5", | |
"6" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment