1

I have multiple directories that contain text files. Some of these directories are named differently yet contain the same text files. How do I remove all duplicated directories?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
  • There are a few questions here about locating and removing duplicate files. One is https://unix.stackexchange.com/questions/71176/find-duplicate-files (about finding, but fdupes can also remove, I believe). – Kusalananda Aug 17 '17 at 16:55

1 Answers1

2
$ rmlint --types duplicatedirs <path>

That will list duplicate dirs and create a shell script (rmlint.sh) that you can optionally run to delete them.

See the user guide for installation instructions etc.

thomas_d_j
  • 1,501