Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
jq to csv with newlines
# based on
# but cleaned non-copy-paste friendly ligatures and injected spaces
jq '.some.filter | @csv' | sed 's/\\\\/\\/g' | sed 's/\\\"/\"/g' | sed 's/^"//g' | sed 's/"$//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment