linux shell find, compare and delete files -



linux shell find, compare and delete files -

i have 2 directories, , in 1 of them renamed lot , have more 2000 different files.

i'd find out files of same size, crc on files identical sizes, , if match, delete file sec folder.

after googling, found beyondcompare , other nice diff utilities, dont this.

i'm pretty sure one-liner in linux shell this.

you can utilize dedicated tool, fdupes

$ fdupes -rfd dir1 dir2

linux file shell comparison

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -