On Friday 11 December 2009 20:31:54 Alexander Bochmann wrote: > Hi, > > ...on Fri, Dec 11, 2009 at 06:52:09PM -0500, STeve Andre' wrote: > > > > Compare how? > > I should have been more clear I suppose. I'd like to know > > the files that are identical, files that are of the same > > name but different across directories, possibly several > > directories. > > Maybe you could use something like this in the > directory you're looking at: > > find . -type f -print0 | xargs -0 -r -n 100 md5 -r > md5sums > > You could now just sort the md5sums file to find > all entries with the same md5... Or sort by filename > (will need some more logic if files are distributed > over several subdirectories) to weed out those with > the same name and different checksums. > > Alex. > > >
Yup! I'm doing that for single directories now. But the added logic for N dirs was something I hoped to avoid. --STeve