From: | Lothar Behrens <lothar(dot)behrens(at)lollisoft(dot)de> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Using database to find file doublettes in my computer |
Date: | 2008-11-17 19:22:47 |
Message-ID: | ca2dedac-e29c-4119-b2ee-5b3b2e3afd4f@s9g2000prg.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I have a problem to find as fast as possible files that are double or
in other words, identical.
Also identifying those files that are not identical.
My approach was to use dir /s and an awk script to convert it to a sql
script to be imported into a table.
That done, I could start issuing queries.
But how to query for files to display a 'left / right view' for each
file that is on multible places ?
I mean this:
This File;Also here
C:\some.txt;C:\backup\some.txt
C:\some.txt;C:\backup1\some.txt
C:\some.txt;C:\backup2\some.txt
but have only this list:
C:\some.txt
C:\backup\some.txt
C:\backup1\some.txt
C:\backup2\some.txt
The reason for this is because I am faced with the problem of ECAD
projects that are copied around
many times and I have to identify what files are here missing and what
files are there.
So a manual approach is as follows:
1) Identify one file (schematic1.sch) and see, where are copies of
it.
2) Compare the files of both directories and make a desision about
what files to use further.
3) Determine conflicts, thus these files can't be copied together
for a cleanup.
Are there any approaches or help ?
This is a very time consuming job and I am searching for any solution
that helps me save time :-)
I know that those problems did not arise when the projects are well
structured and in a version management system. But that isn't here :-)
Thanks
Lothar
From | Date | Subject | |
---|---|---|---|
Next Message | Andrej Ricnik-Bay | 2008-11-17 19:31:18 | Re: In memory Database for postgres |
Previous Message | aravind chandu | 2008-11-17 19:11:16 | In memory Database for postgres |