Created
February 15, 2014 09:31
-
-
Save mmb/9016723 to your computer and use it in GitHub Desktop.
Using jq to extract lists from a Wunderlist json export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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