[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Eliminating duplicate photos

On Mon, 29 Sep 2008 14:00:43 -0400
Trapper <trapper miami-canes com> wrote:

>  have a problem similar to Timothy's. If I run "md5sum *" on a folder, 
> in a terminal,  it lists all the sums. My problem is that I have several 
> thousand files. Is there some way I can output the results to a text 
> file?

md5sum * > textfile

will create a file named textfile in the current directory (along with all of
your photos).

> Can't copy and paste unless there's some way for me to adjust the 
> terminal to allow the last several thousand lines to display. Then I'm 
> also going to have to sort all those lines into some alphabetical order 
> to reasonably detect duplicate sums. Any ideas?

man sort
man uniq

These commands will do exactly what you are looking for.

fslint is a very slick way to find duplicate files, too.

yum install fslint

You'll be impressed.

MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]