Created
August 21, 2024 17:07
-
-
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
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
# 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