Skip to content

Instantly share code, notes, and snippets.

@petecooper
Last active July 2, 2022 19:06
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 petecooper/cdd577906b16bec930502572bdfd96fe to your computer and use it in GitHub Desktop.
Save petecooper/cdd577906b16bec930502572bdfd96fe to your computer and use it in GitHub Desktop.
How large is your Safari reading list?
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sort | sed -E 's/<\/{0,1}string>//g' > ~/Documents/safari-readinglist.txt | uniq -d ~/Documents/safari-readinglist.txt && wc -l ~/Documents/safari-readinglist.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment