On 5 Mar 2005 19:54:34 -0800, rumours say that [EMAIL PROTECTED] (Ben Rf)
might have written:
[snip]
>the end end goal is to have a way of finding duplicate files that are
>scattered across a lan of 4 windows computers.
Just in case you want to go directly to that goal, check this:
http://group
In <[EMAIL PROTECTED]>, James Stroud
wrote:
> If you are using md5sum, tou can grab the md5 and the filename like such:
>
> myfile = open(filename)
> md5sums = []
> for aline in myfile.readlines():
> md5sums.append(aline[:-1].split(" ",1))
md5sums.append(aline[:-1].split(None, 1))
That wor
Ben Rf wrote:
I'm new to programming and i'd like to write a program that will parse
a list produced by md5summer and give me a report in a text file on
which md5 sums appear more than once and where they are located.
This should do the trick:
"""
import fileinput
md5s = {}
for line in fileinput.in
Among many other things:
First, you might want to look at os.path.walk()
Second, look at the string data type.
Third, get the Python essential reference.
Also, Programming Python (O'Riely) actually has a lot in it about stuff like
this. Its a tedious read, but in the end will help a lot for adm