Monday, April 29, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1065  / 2 Years ago, tue, june 21, 2022, 2:16:39

is there a way possible with terminal pipelining to sort the bookmarks Mozilla Firefoxstores in alphabetical order?



I tried dabbing a little but to my disappointment ,the bookmarks are stored in JSON format ,how do you extract things from that ?


More From » command-line

 Answers
2

If you state what your final goal is, you will get better answers. You can get a somewhat clean list of sorted URLs from a JSON file with something like:



sed 's/,/
/g' bookmarks-2012-07-07.json | grep '"uri"' | grep http | cut -d '"' -f 4 | sort


Your most powerful option is to utilize sqlite3 to get the bookmarks from the file places.sqlite from your home directory.


[#37011] Wednesday, June 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nguai

Total Points: 216
Total Questions: 108
Total Answers: 116

Location: Hong Kong
Member since Thu, Dec 16, 2021
2 Years ago
;