LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Sorting pictures, removing duplicates

Posted 11-20-2010 at 08:37 AM by jere21
Updated 02-03-2012 at 03:49 PM by jere21

EDIT 2012-02-03:
In Debian I just discovered "duff". A tool to find duplicate files
---


All files with their md5sum
Code:
find . -type f -exec md5sum '{}' ';' > pics_complete.txt
Lists with only md5sum, once with duplicates removed
Code:
cat pics_complete.txt | sed -r "s|^(.*) .*|\1|"| sort > pics_sorted.txt
cat pics_complete.txt | sed -r "s|^(.*) .*|\1|"| sort -u > pics_sorted-uniq.txt
md5sum...
LQ Newbie
Posted in Uncategorized
Views 3626 Comments 2 jere21 is offline

  



All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration