Skip to content

Instantly share code, notes, and snippets.

@greymd
Created June 20, 2016 20:22
Show Gist options
  • Save greymd/9f229b19b9b49c5d1cab8b95ded1552a to your computer and use it in GitHub Desktop.
Save greymd/9f229b19b9b49c5d1cab8b95ded1552a to your computer and use it in GitHub Desktop.
Parse CSV input with jq
$ 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