On Sun, 2003-01-19 at 23:31, Wagner, David --- Senior Programmer Analyst --- WGO wrote: > Mertens Bram wrote: [snip] > > I would like to be able to remove all duplicate entries without > > destroying the structure of the file. [snip] > It appears that it should not be too hard to do this. I would > rather see a file with a few more entries for Folders and URL's.
Do you mean you would like to see a larger portion of the file? I can send it off-list to you if you want... > Are there other fields which you do not have in the defining of > either Folders and URL's? No, folders always have the NAME, CREATED and ORDER fields. URL's always have the NAME, URL, CREATED, VISITED and ORDER fields. The URL's should be compared based on the values of NAME and URL. The VALUES of CREATED, VISITED and ORDER should be ignored for the comparison. The values of CREATED and VISITED can be retained from the URL's that are no duplicates but the ORDER field should be reset. Otherwise Opera might consider the file corrupted and overwrite it with it's backup. > Do you take the first occurance of a URL or the last? Whatever is easier, if they are duplicates I don't mind, the CREATED, VISITED and ORDER fields are of little importance to me. > How does a NAME get set? Could name be 'atripod' and another be > 'ztripod' for www.tripood.com? If I somehow assigned two name's to the same URL I don't mind deleting those manually afterwards. I still have to go through the file manually later anyhow to put some of the URL's into other folders. Right now I would like to remove the duplicates per folder. Rob's suggestion works fine but it doesn't preserve the syntax of the bookmark file. TIA -- # Mertens Bram "M8ram" <[EMAIL PROTECTED]> Linux User #249103 # # Red Hat Linux release 7.3 (Valhalla) kernel 2.4.18-3 i686 128MB RAM # # 11:50am up 9 days, 16:03, 1 user, load average: 0.25, 0.16, 0.16 # -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]