Created
February 20, 2021 18:33
-
-
Save fluidum/d8d63457d96b78ae46c117fb49ba8f0d to your computer and use it in GitHub Desktop.
remove duplicate files in the same folder
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
sha256sum * | sort -k1 | uniq -w 32 -d | cut -d' ' -f3 | xargs -I{} sh -c 'rm {}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment