Skip to content

Instantly share code, notes, and snippets.

@garbados
Last active January 1, 2016 21:39
Show Gist options
  • Save garbados/8204632 to your computer and use it in GitHub Desktop.
Save garbados/8204632 to your computer and use it in GitHub Desktop.
Using `jq` to pipe couchdb contents into `dat`
# _all_docs
curl http://localhost:5984/eggchair/_all_docs?include_docs=true | jq -c ".rows[] | .doc" | dat --json
# _changes
curl http://localhost:5984/eggchair/_changes?include_docs=true | jq -c ".results[] | .doc" | dat --json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment