Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created August 21, 2024 17:07
Show Gist options
  • Save yetanotherchris/6b0fedee86ff450df5693c253d4de3e1 to your computer and use it in GitHub Desktop.
Save yetanotherchris/6b0fedee86ff450df5693c253d4de3e1 to your computer and use it in GitHub Desktop.
List all Firefox bookmark titles and urls from JSON Export file, using JQ
# Tested on Ubuntu, use 'apt-get install jq'
cat ./bookmarks.json | jq '.. | select(.type?=="text/x-moz-place") | "\(.title?), \(.uri)"?'
cat ./bookmarks.json | jq -r '.. | select(.type?=="text/x-moz-place") | "- [\(.title?)](\(.uri?))"' > uris.md
# The second prints a markdown file using the title and uri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment