Skip to content

Instantly share code, notes, and snippets.

@mmb
Created February 15, 2014 09:31
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 mmb/9016723 to your computer and use it in GitHub Desktop.
Save mmb/9016723 to your computer and use it in GitHub Desktop.
Using jq to extract lists from a Wunderlist json export
# All unfinished items from a list called "Buy"
cat ~/Downloads/wunderlist-20140214-23-56-27.json | \
jq -r '([.lists[] | {key: .id, value: .title}] | from_entries) as $lists |
.tasks |
map(select(.completed_at == null)) |
map({title, list: $lists[.list_id]}) |
map(select(.list == "Buy")) |
.[].title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment