Utility for finding duplicate files?
Walter Dnes
waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Sun Jun 20 22:31:30 UTC 2010
Last week, after my main machine's hard drive started making ominous
noises, I copied over just about all data from the machine. There's a
ton of duplication with the major backups on my backup USB drive. I
could do something like...
#!/bin/bash
for file1 in *
do
if diff -q ${file1} ../dir2/${file1}; then
echo "rm ../dir2/${file1}" >> removelist
fi
done
...and then source removelist
Is there a utility program already written that can generate a list of
duplicate files?
--
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list