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,188 times
1
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,501
fdupes
can also remove, I believe). – Kusalananda Aug 17 '17 at 16:55