INPUT:
[USER@NOTEBOOK ~/proba] find . -type f | xargs -I "{}" md5sum "{}" | sort
18b17ef2e55f6fd2deb044943a8a769d ./yes
2b00042f7481c7b056c4b410d28f33cf ./tt.txt
2b00042f7481c7b056c4b410d28f33cf ./tx.txt
698458eb994fafdf56c1f63295c942ad ./laksjdasdff.txt
764efa883dda1e11db47671c4a3bbd9e ./ize2.txt
764efa883dda1e11db47671c4a3bbd9e ./ize3.txt
764efa883dda1e11db47671c4a3bbd9e ./ize.txt
a787d6f5ce5deb6e2e4b004f95da5655 ./laksjdf.txt
[USER@NOTEBOOK ~/proba]
OUTPUT:
[USER@NOTEBOOK ~/proba] find . -type f | xargs -I "{}" md5sum "{}" | sort | SOMEMAGIC
tt.txt tx.txt
ize2.txt ize3.txt ize.txt
[USER@NOTEBOOK ~/proba]
So I need a "SOMEMAGIC" that only outputs filenames if the md5sum matches (one line per md5sum). (It will be a deduplication script.. )