Skip to content

Instantly share code, notes, and snippets.

@fluidum
Created February 20, 2021 18:33
Show Gist options
  • Save fluidum/d8d63457d96b78ae46c117fb49ba8f0d to your computer and use it in GitHub Desktop.
Save fluidum/d8d63457d96b78ae46c117fb49ba8f0d to your computer and use it in GitHub Desktop.
remove duplicate files in the same folder
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