Skip to content

Instantly share code, notes, and snippets.

@dkrnl
Created July 5, 2022 12:23
Show Gist options
  • Save dkrnl/09eead97d53937e9d18bc7e751260489 to your computer and use it in GitHub Desktop.
Save dkrnl/09eead97d53937e9d18bc7e751260489 to your computer and use it in GitHub Desktop.
find duplicate files
find . -mindepth 1 -printf '%h %f\n' | sort -t ' ' -k 2,2 | uniq -f 1 --all-repeated=separate | tr ' ' '/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment