Beverly Howard wrote:
 >> utility to find duplicate bookmarks <<

Woof!!! Turns our to be an interesting question.

I just took a look at my (very old) bookmarks file (which is indispensable in my daily use of SeaMonkey)

To investigate my own file, with seamonkey closed, I made a copy of the bookmarks file, then opened that copy with TextPad (an advanced text editor)

I then replaced all instances of;

<A HREF=

with the "regular expression";

\n<A HREF=

or <newline><A HREF=

...then sorted the file by lines

Doing so turned up a _huge_ number of duplicate urls, which, at least, allows you to see the dupes and possibly then manually delete them... too large a job in my case with just under 3,000 bookmarks.

At the moment, I have no thoughts or suggestions on how to automate the process, but you have exposed the need for a utility.

fwiw, I'll ponder on the problem to see if I can come up with a way to easily scrub my own file.

Assuming (probably unreasonably) that your bookmarks are not organized into groups, you can easily eliminate dupes using MS Access.

1) Using your text editor, convert a copy of your bookmarks file to the format
        Name[tab]Location[tab]Description
        Name[tab]Location[tab]Description
        Name[tab]Location[tab]Description
        ...

2) In Access, create a table in Design view specifying the appropriate number of fields (Name, Location, Description), and requiring that "Location" must be unique (Indexed: Yes, no duplicates). Save the empty table and display it in Datasheet view.

3) Now go back to your modified bookmarks file and copy the entire thing.

4) In Access, paste/append into the table. Access will reject any duplicates and ask you whether to nag for each error or just put them all in an error list. Choose "Yes" to get a list of errors.

5) Open the table Paste Errors and you'll see a list of dupes showing Name, Location, Description. You can then delete these in the intact bookmarks file from within SeaMonkey.

--
War doesn't determine who's right, just who's left.
--
Paul B. Gallagher
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to