是否有任何工具可以“区分” TB 大小的文本文件?
答案1
您可以使用bdiff
. 用于比较太大而无法在内存中加载的文件。
NAME
bdiff - big diff
SYNOPSIS
bdiff filename1 filename2 [n] [-s]
DESCRIPTION
bdiff is used in a manner analogous to diff to find which
lines in filename1 and filename2 must be changed to bring
the files into agreement. Its purpose is to allow processing
of files too large for diff. If filename1 (filename2) is -,
the standard input is read.
答案2
这些文件可以排序吗?(例如通过“sort”命令)
如果是,并且取决于您要寻找的差异类型,并且如果这是一次性练习,为什么不对它们进行排序,分成字母表中的字母(或其他任何字母,只要您获得多个文件)然后比较每个字母..
虽然很原始,但对您来说可能工作起来很简洁、轻松?