Skip to content

Instantly share code, notes, and snippets.

@langsdlc
Forked from CliffordAnderson/directions.md
Created December 22, 2015 15:31
Show Gist options
  • Save langsdlc/74e3b4998ac59716d050 to your computer and use it in GitHub Desktop.
Save langsdlc/74e3b4998ac59716d050 to your computer and use it in GitHub Desktop.
Bash / JQ for Cloudant Bulk Upload & Download
http post #####:#####@vulibrarygis.cloudant.com/campustour/_bulk_docs < tour.json
http https://vulibrarygis.cloudant.com/campustour/_design/tour/_view/historicalTour | jq '{"docs": [.rows[].value] }' > tour.json
find . -name '*.json' -exec cat {} \; | jq -s '{"docs": [ .[] ]}' > 'docs.json'
find . -name '*.json' -exec cat {} \; | jq -s '{"docs": [ .[] ]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment