Hi.
Is there a way to find the total number of bookmarks I have in Firefox?
Hi.
Is there a way to find the total number of bookmarks I have in Firefox?
1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
GNU/Linux User #470660 – Ubuntu User #28226
Isaac Asimov: "I do not fear computers. I fear the lack of them."
You can get an answer by backing up your bookmarks and counting the number of occurences of "lastModified", which probably occurs once per bookmark. It is possible that this string occurs exactly once per bookmark and nowhere else, but it may apply to non-bookmark entries, such as menu items.
Code:grep -o "lastModified" Bookmarks\ 2009-12-01.json | wc
1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
GNU/Linux User #470660 – Ubuntu User #28226
Isaac Asimov: "I do not fear computers. I fear the lack of them."
Yes, the numbers output by wc are lines, words and characters. The output from grep is each occurrence of "lastModified" on a separate line, so word and line counts are the same (and 15665 is exactly 1205 times the length of "lastModified" + 1 linefeed, 13 characters each). You could use wc -w to get just the word count.
(man grep and man wc give very comprehensive information about the options).
Thank you StuartN. I'm surprised Firefox doesn't have an easy function to show the total number of bookmarks. Perhaps there will be an addon released some time.
Cheers.
1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
GNU/Linux User #470660 – Ubuntu User #28226
Isaac Asimov: "I do not fear computers. I fear the lack of them."
I found this a little more accurate:
grep -o "A HREF=" <file spec of html backup of bookmarks from firefox libary page> | wc
Closed, please don't bump old threads.
Bookmarks