Messy Filesytem : Duplicate File Removal from the command line

Posted by jrause on Super User See other posts from Super User or by jrause
Published on 2011-01-17T04:59:26Z Indexed on 2011/01/17 5:55 UTC
Read the original article Hit count: 247

In debian/ubuntu I want to a) create a list of all the files in one directory tree b) do the same for a second directory tree c) compare the two lists such that, only the file NAMES are compared (i.e. just comparing the "file.txt" part so that "/home/folder/file.txt" == "/home/secondfolder/folder/file.txt) d) output a list of all the duplicates

can anyone please explain how to do this using scripting languages or regex or something?

© Super User or respective owner

Related posts about linux

Related posts about command-line