排序使用sort 命令,如 sort 1.txt -o 11.txt sort 2.txt -o 22.txt 比较可以使用 diff -u 11.txt 22.txt 或者 comm -3 11.txt 22.txt