Comparing two files in linux terminal

后端 未结 10 1201
一生所求
一生所求 2020-12-22 17:31

There are two files called \"a.txt\" and \"b.txt\" both have a list of words. Now I want to check which words are extra in \"a.txt\

10条回答
  •  长情又很酷
    2020-12-22 17:42

    You can also use: colordiff: Displays the output of diff with colors.

    About vimdiff: It allows you to compare files via SSH, for example :

    vimdiff /var/log/secure scp://192.168.1.25/var/log/secure
    

    Extracted from: http://www.sysadmit.com/2016/05/linux-diferencias-entre-dos-archivos.html

提交回复
热议问题