Help - Search - Members - Calendar
Full Version: Extracting The Difference Of Two Files
Linuxhelp > In The Community > General Discussion
hi im trying to extract data from textfile.txt which is not present on textfile2.txt and put it to newfile.txt.. can i do this with diff?

therefore, what ever data textfile.txt has that does not exists on textfile2.txt, it must be written into newfile.txt

Hope you can help me with this..

yes you can use diff for this operation..i have used it couple of times so im not really
exactly sure of the syntax for the command.

if you type: man diff
this will give you some explanation of some of the syntax for the command.
There is excellent KDE tool called Kompare that provides similar thing and is GUI based.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.