Skip to content

Instantly share code, notes, and snippets.

@kidd
Created October 9, 2023 11:16
Show Gist options
  • Save kidd/02b8409c13c4ad10019b14ee11720029 to your computer and use it in GitHub Desktop.
Save kidd/02b8409c13c4ad10019b14ee11720029 to your computer and use it in GitHub Desktop.
Duplicate file finder helpers
# 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