Results 1 to 8 of 8

Thread: How can I find out how many Firefox bookmarks I have?

  1. #1
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,456
    Distro
    Ubuntu Mate

    Question How can I find out how many Firefox bookmarks I have?

    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."

  2. #2
    Join Date
    Apr 2009
    Beans
    1,173

    Re: How can I find out how many Firefox bookmarks I have?

    Quote Originally Posted by Rytron View Post
    Hi.
    Is there a way to find the total number of bookmarks I have in Firefox?
    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

  3. #3
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,456
    Distro
    Ubuntu Mate

    Post Re: How can I find out how many Firefox bookmarks I have?

    Quote Originally Posted by StuartN View Post
    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
    Smart code.
    I ran it and got this:
    Code:
    1205    1205   15665
    Does it mean I have 1205 bookmarks? What does 15665 signify?
    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."

  4. #4
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How can I find out how many Firefox bookmarks I have?

    Quote Originally Posted by Rytron View Post
    Smart code.
    I ran it and got this:
    Code:
    1205    1205   15665
    Does it mean I have 1205 bookmarks? What does 15665 signify?
    You spend too much time in the net??

  5. #5
    Join Date
    Apr 2009
    Beans
    1,173

    Re: How can I find out how many Firefox bookmarks I have?

    Quote Originally Posted by Rytron View Post
    Smart code.
    I ran it and got this:
    Code:
    1205    1205   15665
    Does it mean I have 1205 bookmarks? What does 15665 signify?
    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).

  6. #6
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,456
    Distro
    Ubuntu Mate

    Post Re: How can I find out how many Firefox bookmarks I have?

    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."

  7. #7
    Join Date
    Apr 2013
    Beans
    1

    Re: How can I find out how many Firefox bookmarks I have?

    I found this a little more accurate:

    grep -o "A HREF=" <file spec of html backup of bookmarks from firefox libary page> | wc

  8. #8
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 17.10 Artful Aardvark

    Re: How can I find out how many Firefox bookmarks I have?

    Closed, please don't bump old threads.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •