Skip to content

Instantly share code, notes, and snippets.

@nielsvanderbeke
Last active December 24, 2015 21:19
Show Gist options
  • Save nielsvanderbeke/6865112 to your computer and use it in GitHub Desktop.
Save nielsvanderbeke/6865112 to your computer and use it in GitHub Desktop.
Find duplicate files
# print them
find . -regex '.*([0-9])\..*'
# count them
find . -regex '.*([0-9])\..*' | wc -l
# delete them
find . -regex '.*([0-9])\..*' -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment