LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   In Unstable; how to find the differences between two text files? (https://www.linuxquestions.org/questions/debian-26/in-unstable%3B-how-to-find-the-differences-between-two-text-files-747900/)

linus72 08-16-2009 06:30 AM

In Unstable; how to find the differences between two text files?
 
Good morning people!

I need to know if there is a command to find differences between two text files

Example; I have a debian pkg list from grml-medium and a pkg list
for debian live lxde

The grml pkg list has like 200+ pkgs' and the deb live has 200+ pkgs

How would I know the differnces bewtween the two without manually checking each one?

thanks

colucix 08-16-2009 06:35 AM

Code:

diff <(sort package.list.1) <(sort package.list.2)
it's not so simple, isn't it? Maybe I missed something...

jdkaye 08-16-2009 06:48 AM

Quote:

Originally Posted by linus72 (Post 3645200)
Good morning people!

I need to know if there is a command to find differences between two text files

Example; I have a debian pkg list from grml-medium and a pkg list
for debian live lxde

The grml pkg list has like 200+ pkgs' and the deb live has 200+ pkgs

How would I know the differnces bewtween the two without manually checking each one?

thanks

If you want the results in beautiful living colour, then try kdiff3.
cheers,
jdk

linus72 08-16-2009 06:50 AM

Oh yeah?

does kdiff require kde though or big libs?

colucix 08-16-2009 06:58 AM

You can try also tkdiff. Not colorized, but it highlights the differences for single characters. It is a small package which requires tcl/tk, that most likely you've already installed.

linus72 08-16-2009 07:01 AM

OK
I'm chrooted now, so I'll try and install either...

I just need to know what pkgs Hag, GRML-medium, and Deb Live lxde have in comparison to one another


All times are GMT -5. The time now is 01:56 PM.