Created
August 29, 2013 10:57
-
-
Save milkersarac/6376705 to your computer and use it in GitHub Desktop.
This script find and deletes duplicate images in a directory of directories. It requires 'dupinator.py' script. This is just a wrap up to call that .py script over multiple folders. For 'dupinator.py' check http://code.activestate.com/recipes/362459-dupinator-detect-and-delete-duplicate-files/ This script is faster than the later ndupdet.sh whic…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILES="/homes/ilker/political_influence/images/summit_images/*" | |
for dir in $FILES | |
do | |
echo $dir | |
cd $dir | |
ls > ../../logs_summit_images/originals/${PWD##*/}_originals.txt | |
cd ../../ | |
RESULT=$(python dupinator.py $dir) | |
cd $dir | |
ls > ../../logs_summit_images/deleted/${PWD##*/}_deleted.txt | |
cd ../../ | |
echo $dir DONE. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment