How do I check for differences...
Hi all, Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that? Thanks, JB -- "A nation can survive its fools and even the ambitious but it cannot survive treason from within. An enemy at the gates is less formidable for he is known and he carries his banner openly against the city. But the traitor moves among those within the gates freely." Cicero
diff new_file old_file On Wednesday 06 September 2006 01:54 pm, JB wrote:
Hi all,
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Thanks,
JB
-- "A nation can survive its fools and even the ambitious but it cannot survive treason from within. An enemy at the gates is less formidable for he is known and he carries his banner openly against the city. But the traitor moves among those within the gates freely." Cicero
-- Best wishes, Alberto +-------------------------------------------------------------------+ Alberto Santana, PhD Department of Chemistry University of Puerto Rico - Mayaguez P.O. Box 9019 Mayaguez PR 00681-9019 Phone: (787) 832-4040 x2293 http://academic.uprm.edu/~asantana +-------------------------------------------------------------------+ Powered by SuSE Linux 10.0 (http://www.novell.com/linux/suse)
diff new_file old_file
diff -dpru OLD NEW old and new can be directories.
On Wednesday 06 September 2006 01:54 pm, JB wrote:
Hi all,
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Thanks,
JB
-- "A nation can survive its fools and even the ambitious but it cannot survive treason from within. An enemy at the gates is less formidable for he is known and he carries his banner openly against the city. But the traitor moves among those within the gates freely." Cicero
-- Best wishes, Alberto +-------------------------------------------------------------------+ Alberto Santana, PhD Department of Chemistry University of Puerto Rico - Mayaguez P.O. Box 9019 Mayaguez PR 00681-9019 Phone: (787) 832-4040 x2293 http://academic.uprm.edu/~asantana +-------------------------------------------------------------------+ Powered by SuSE Linux 10.0 (http://www.novell.com/linux/suse)
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Jan Engelhardt --
On Wednesday 06 September 2006 19:54, JB wrote:
Hi all,
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Thanks,
If you know Vim and got GVim installed, "gvimdiff file1.txt file2.txt" works quite well. If you don't know Vim (and are not interested in learning a really powerful text editor) this might be a bit excessive for you. "diff" is always their and works very well. Only problem: it takes some getting used to, to understand the output. Marius
Am Mittwoch, 6. September 2006 20:58 schrieb Marius Roets:
On Wednesday 06 September 2006 19:54, JB wrote:
Hi all,
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Thanks,
If you know Vim and got GVim installed, "gvimdiff file1.txt file2.txt" works quite well. If you don't know Vim (and are not interested in learning a really powerful text editor) this might be a bit excessive for you. "diff" is always their and works very well. Only problem: it takes some getting used to, to understand the output.
Marius
or use kdiff3 if you like a graphical interface in my KMenu it's somewhere under Entwicklung/Versionsverwaltung (development/version control) Daniel -- Daniel Bauer photographer Basel Switzerland professional photography: http://www.daniel-bauer.com Madagascar special: http://www.sanic.ch
On Wednesday 06 September 2006 12:54, JB wrote:
Hi all,
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Thank you everyone for the ideas!! -- "A nation can survive its fools and even the ambitious but it cannot survive treason from within. An enemy at the gates is less formidable for he is known and he carries his banner openly against the city. But the traitor moves among those within the gates freely." Cicero
JB <yonaton@localnet.com> writes:
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Emacs (Tools / Compare) can do it too. Contrary to diff, it uses color to mark single words. I guess other advanced text editors can do the same. -- A.M.
On Thu, 2006-09-07 at 10:36 +0200, Alexandr Malusek wrote:
JB <yonaton@localnet.com> writes:
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Emacs (Tools / Compare) can do it too. Contrary to diff, it uses color to mark single words. I guess other advanced text editors can do the same.
-- A.M.
Or, if you dont mind KDE apps, try Kompare, one of the best compare/diff tools Ive seen. (just lacks edit options) E-Mail disclaimer: http://www.sunspace.co.za/emaildisclaimer.htm
Hi, On Thursday 07 September 2006 05:02, Hans van der Merwe wrote:
On Thu, 2006-09-07 at 10:36 +0200, Alexandr Malusek wrote:
JB <yonaton@localnet.com> writes:
Let's say I have a text file I got one day, and a week later I get the text file again but want to compare the two to see if there are *any* differences at all between them, like the spelling of one word, or the ommission of a word or sentence, things like that?
Emacs (Tools / Compare) can do it too. Contrary to diff, it uses color to mark single words. I guess other advanced text editors can do the same. -- A.M.
Or, if you dont mind KDE apps, try Kompare, one of the best compare/diff tools Ive seen. (just lacks edit options)
"Don't Mind KDE" ??? Eh? Everyone knows, KDE is ... There's also kdiff3, which is a bit fancier than Kompare. I use them both, but prefer kdiff3. jEdit has a plug-in for side-by-side difference and on Windows I use ExamDiffPro Randall Schulz
participants (8)
-
Alberto Santana
-
Alexandr Malusek
-
Daniel Bauer
-
Hans van der Merwe
-
Jan Engelhardt
-
JB
-
Marius Roets
-
Randall R Schulz