} Does anyone know if there are programs which find all multiple identical
} files in a whole UNIX filesystem?. It would be ideal if it would return
} the paths/filenames of all files which exist more than once...
If identical means having the same inode, then you can get away with
something like
find / -type f \( \! -links 1 \) -print
If not, then use the following script. I hope you're sure about it.
Martin
---------------------------------------------------------------------------
#!/usr/bin/perl
while($f2 = $f[$i]) {
open(F, $f2); sysread(F, $b, (stat $f2)[7]); close F;
if ($a eq $b) {
push(i, $f2)
} else { $i++ }
}
Quote:} continue { reset 'i' }