Skip to content

Instantly share code, notes, and snippets.

@andrewxhill
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewxhill/d763c9722d2ae1ed5598 to your computer and use it in GitHub Desktop.
Save andrewxhill/d763c9722d2ae1ed5598 to your computer and use it in GitHub Desktop.
Merging an entire directory of data and loading it to CartoDB
#!/bin/bash/
## Relies on https://gist.github.com/andrewxhill/093c89fa45e5f657fec7
DATA=`find . -name '*.gpx'`
for i in $DATA
do
echo $i
python cartodb-utils.py append -f $i -t {your-existing-table} -k {your-api-key} -u {your-cartodb-account-name}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment