[lug] replacing dupes with links

Zan Lynx zlynx at acm.org
Tue Mar 13 09:24:04 MDT 2018


On 3/12/2018 3:22 PM, mad.scientist.at.large at tutanota.com wrote:
> For organizational purposes i'm trying to deal with a partition that has 
> many copies of each file in various subdirectories.  I'd like a way to 
> replace all but one instance of a given file with a link.  Is there an 
> easy way to do this?  I'm thinking i can use fdupes and some scripting.  
> Any better ideas or already written shellscripts or programs?

I've used rmlint successfully.

See https://github.com/sahib/rmlint.git

Be sure to review the script it generates though.

I like using it for btrfs dedupe.


More information about the LUG mailing list