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?
Asked
Active
Viewed 3,124 times
1
-
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 Answers
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,481
- 1
- 9
- 8