Created
October 9, 2023 11:16
-
-
Save kidd/02b8409c13c4ad10019b14ee11720029 to your computer and use it in GitHub Desktop.
Duplicate file finder helpers
This file contains 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
# helping to find dupes. Not complete, | |
# but this can serve as a basis for a pure shellscript dup finder | |
find . -type f -exec du -s {} \; -exec /usr/bin/basename {} \; >/tmp/list.txt | |
cat /tmp/list.txt | cut -f1 -d' ' | paste - - | grep png | sort | uniq| wc -l | |
cat /tmp/list.txt | cut -f1 -d' ' | paste - - | grep png | sort | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment