diff files comparing only first n characters of each line

后端 未结 3 740
日久生厌
日久生厌 2021-02-19 05:30

I have got 2 files. Let us call them md5s1.txt and md5s2.txt. Both contain the output of a

find -type f -print0 | xargs -0 md5sum | sort > md5s.txt

3条回答
  •  攒了一身酷
    2021-02-19 06:27

    Easy starter:

    diff <(cut -d' ' -f1 md5s1.txt)  <(cut -d' ' -f1 md5s2.txt)
    

    Also, consider just

    diff -EwburqN folder1/ folder2/
    

提交回复
热议问题