There are several Linux commands that can be used to compare text files - some
familiar, some not so familar:
- diff
- comm
- cmp
- diff3
- sdiff
- colordiff
- wdiff
Are there any others that you know about? If so, how about sharing with the
community, along with an example.
Note: If you are a RHCA or RHCE, please sit this one out!!!
I prefer using vim to compare textfiles. There a quite some tutorials online. You can start as follows:
vimdiff firstfile secondfile
vim -d firstfile secondfile
These are two that you won't see very often - if at all!
Thanks Markd81 for adding to the community's knowledgebase!!!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.