[ale] Looking for duplicate photos
Trey Sizemore
trey at fastmail.fm
Sun Feb 6 13:40:06 EST 2005
On Sun, 2005-02-06 at 07:41 -0500, aaron wrote:
> Here's one that I think covers all the suggestions. It also adds handling for
> odd filename characters and generates a "remove" script that can be checked
> before deleting files:
>
> http://elonen.iki.fi/code/misc-notes/remove-duplicate-files/
Thanks. I get the following, however, when I attempt to run from my
bash prompt:
trey at salamander~/pictures> OUTF=rem-duplicates.sh; echo "#! /bin/sh" >
$OUTF; find "$@" -type f -print0 | xargs -0 -n1 md5sum | sort --key=1,32
| uniq -w 32 -d --all-repeated=separate | sed -r
's/^[0-9a-f]*( )*//;s/([^a-zA-Z0-9./_-])/\\\1/g;s/(.+)/#rm \1/' >>
$OUTF; chmod a+x $OUTF; ls -l $OUTF
find: illegal option -- t
find: illegal option -- y
find: illegal option -- p
find: illegal option -- e
find: f: No such file or directory
sed: illegal option -- r
usage: sed script [-Ean] [-i extension] [file ...]
sed [-an] [-i extension] [-e script] ... [-f script_file] ...
[file ...]
uniq: illegal option -- w
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
-rwxr-xr-x 1 trey wheel 11 Feb 6 13:33 rem-duplicates.sh
--
Cheers,
Trey
---
Humor is the only test of gravity, and gravity of humor; for a subject
which will not bear raillery is suspicious, and a jest which will not
bear serious examination is false wit.
-- Aristotle
1:34PM up 5:22, 0 users, load averages: 1.42, 1.37, 1.29
FreeBSD salamander.thesizemores.net 5.3-STABLE i386
More information about the Ale
mailing list