cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 326 Views

Comparing Text Files

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!!!

 

Trevor "Red Hat Evangelist" Chandler
2 Replies
markd81
Cadet
Cadet
  • 238 Views

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

Trevor
Starfighter Starfighter
Starfighter
  • 225 Views

These are two that you won't see very often - if at all!

Thanks Markd81 for adding to the community's knowledgebase!!!

Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.