Advertisement
mindthump

Browser JSON tabs export to OneTab import with jq

Sep 9th, 2021 (edited)
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Chrome Cluster extension
  2.  
  3. cat file.json | jq -r '.[].tabs[] | (.url + " | " + .title)' | pbcopy
  4.  
  5.  
  6. Firefox Bookmarks backup (fix path as needed in 'select() clauses):
  7.  
  8. cat bookmarks.json | jq -r '.children[0].children[] | select(.title == "Development").children[] | select(.title == "K8s").children[] | (.uri + " | " + .title)' | pbcopy
Tags: JSON JQ OneTab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement