LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-16-2009, 07:30 AM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
Old 08-16-2009, 07:35 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Code:
diff <(sort package.list.1) <(sort package.list.2)
it's not so simple, isn't it? Maybe I missed something...
 
Old 08-16-2009, 07:48 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,848

Rep: Reputation: Disabled
Quote:
Originally Posted by linus72 View Post
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
 
Old 08-16-2009, 07:50 AM   #4
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Oh yeah?

does kdiff require kde though or big libs?
 
Old 08-16-2009, 07:58 AM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 08-16-2009, 08:01 AM   #6
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find files containing specific text? SurfTurtle Linux - Newbie 7 01-05-2008 06:57 AM
Find text inside files and formatting shadowdancer Linux - Newbie 2 05-02-2007 01:56 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 03:56 AM
find files in text-only? orange400 Linux - General 2 05-27-2004 08:50 AM
How to find text in a set of files? concoran Linux - General 2 06-01-2003 08:36 PM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration