4 ms·
Does it only find duplicate files or will it also find duplicate directory hierarchies? Example: /some/location/one/January/Photos /some/location/two/January
by HumblyTossed 5y ago
Does it only find duplicate files or will it also find duplicate directory hierarchies?
Example:
/some/location/one/January/Photos
/some/location/two/January/Photos
I need a tool that would return a match on January directory.
It would be great to be able to filter things. So for example, if I have backups of my dev folder, I want to filter out all the virtual envs (venv below):
/home/HumblyTossed/dev/venv/bin
/home/HumblyTossed/backups/dev/venv/bin
- chalcolithic 5y agoIf you downvote HumblyTossed's comment please explain why.
- worldeva 5y agoSounds like you're looking for `find` or `fd` https://man7.org/linux/man-pages/man1/find.1.html https://man7.org/linux/man-pages/man1/find.1.html (-mindepth -maxdepth can also be added to make it stricter) find some/location -type d -wholename '*/January/Photos' https://github.com/sharkdp/fd https://github.com/sharkdp/fd fd -p '*/January/Photos' some/location