Looking for a program that shows differences in 2 ascii files
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Looking for a program that shows differences in 2 ascii files
Hello there,
I'm looking for a program that shows differences in two ascii files, particularly differences in source code of two files (i.e. both contain the same code one with the correct code and the other with some mistakes). Can emacs do this? I'm not sure and I'm not too keen on using emacs for some reason.
You would be looking for a command called 'diff'. It's probably already on your computer.
I've used diff before, if I recall correctly it was while patching some code some time back, I was just following instructions and didn't really bother finding out what diff actually did.
If it's any help, there's a very good source-compare tool for Windows called Beyond Compare. I used it before in my previous job to manage source code submissions from multiple programmers. I haven't looked into kdiff3, tkdiff, or diff ... but since I now need a source compare tool for Linux, I will.
If it's any help, there's a very good source-compare tool for Windows called Beyond Compare. I used it before in my previous job to manage source code submissions from multiple programmers. I haven't looked into kdiff3, tkdiff, or diff ... but since I now need a source compare tool for Linux, I will.
You gotta buy that though, low on cash right now. Thanks for the info anyways, might come in handy one day.
It compares the files and produces output in three columns
1) Lines unique to first file only
2) Lines unique to second file only
3) Lines common to both files
we can suppress each columns by applying -1,-2 and -3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.