[newbie] How to compare two files?
Hi. Suppose that a large text file has been slightly modified by another person, and I want to find out 'a posteriori' what changes were done. Is there a linux command (or set of commands) that can compare the two files and tell what lines are different from one another? Thanks, Rodolfo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] How to compare two files?
On Fri, Dec 17, 2004 at 11:33:18PM +0100, Rodolfo Medina wrote: Hi. Suppose that a large text file has been slightly modified by another person, and I want to find out 'a posteriori' what changes were done. Is there a linux command (or set of commands) that can compare the two files and tell what lines are different from one another? Rodolfo, That would be the diff command. man diff for more info. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] How to compare two files?
diff compares text files, cmp compares binaries. Cheers, Simon -Original Message- From: Rodolfo Medina [EMAIL PROTECTED] Sent: Dec 17, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: [newbie] How to compare two files? Hi. Suppose that a large text file has been slightly modified by another person, and I want to find out 'a posteriori' what changes were done. Is there a linux command (or set of commands) that can compare the two files and tell what lines are different from one another? Thanks, Rodolfo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] How to compare two files?
On Friday 17 December 2004 17:33, Rodolfo Medina wrote: Hi. Suppose that a large text file has been slightly modified by another person, and I want to find out 'a posteriori' what changes were done. Is there a linux command (or set of commands) that can compare the two files and tell what lines are different from one another? Thanks, Rodolfo Try diff from command line: $diff file0 file1 Or kompare will give you GUI Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com