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
Post a Comment