执行此操作的超级快速方法是使用“sort”命令对 sum 命令的输出进行排序,并查找具有相同校验和的连续条目。
获取重复文件列表的超级快速方法是将 sum 命令的输出排序到文件中,然后使用“-u”参数再次进行排序,生成唯一列表,并对文件进行比较。区别在于重复的文件。
Under Linux/UNIX, you can use the "sum" or "md5cum" command to generate a checksum for each file. Then just look for files with the same checksum.
The superquick way of doing this would be to sort the output of the sum command with the "sort" command and look for consecutive entries with the same checksum.
The superquick way to get a list of the duplicate files would be sort the output of the sum command to a file, then do it again with the "-u" parameter to sort, making a unique list, and diff the files. The difference will be the duplicate files.
If you're looking for a duplicate finder on a Mac, check out Gemini. It allows to drag-and-drop particular folders for scanning and immediately preview found duplicates so that you could understand what instances of the file should be left untouched.
However, I don't know whether it meets all your requirements, but anyway, you can find Gemini in the Mac App Store if interested.
发布评论
评论(2)
在Linux/UNIX下,可以使用“sum”或“md5cum”命令为每个文件生成校验和。然后只需查找具有相同校验和的文件即可。
执行此操作的超级快速方法是使用“sort”命令对 sum 命令的输出进行排序,并查找具有相同校验和的连续条目。
获取重复文件列表的超级快速方法是将 sum 命令的输出排序到文件中,然后使用“-u”参数再次进行排序,生成唯一列表,并对文件进行比较。区别在于重复的文件。
Under Linux/UNIX, you can use the "sum" or "md5cum" command to generate a checksum for each file. Then just look for files with the same checksum.
The superquick way of doing this would be to sort the output of the sum command with the "sort" command and look for consecutive entries with the same checksum.
The superquick way to get a list of the duplicate files would be sort the output of the sum command to a file, then do it again with the "-u" parameter to sort, making a unique list, and diff the files. The difference will be the duplicate files.
如果您正在 Mac 上寻找重复的查找器,请查看 Gemini。它允许拖放特定文件夹进行扫描并立即预览找到的重复项,以便您了解文件的哪些实例应保持不变。
不过,我不知道它是否满足您的所有要求,但无论如何,如果有兴趣,您可以在Mac App Store中找到Gemini。
If you're looking for a duplicate finder on a Mac, check out Gemini. It allows to drag-and-drop particular folders for scanning and immediately preview found duplicates so that you could understand what instances of the file should be left untouched.
However, I don't know whether it meets all your requirements, but anyway, you can find Gemini in the Mac App Store if interested.