diff command and saving results to a file
I have read the man page, and I think I am overlooking something, or am entering something wrong. I am trying to use the diff command, between a file on my pc, and one on my portable hard drive. Is there a way I can send the results to a txt file, or a file I could read in an editor? Or does this save the results automatically, and I just don't know where? Trying to compare directories, of files, between machines, before rebuilding. TIA Randal
lerninlinux@comcast.net wrote:
I have read the man page, and I think I am overlooking something, or am entering something wrong. I am trying to use the diff command, between a file on my pc, and one on my portable hard drive. Is there a way I can send the results to a txt file, or a file I could read in an editor? Or does this save the results automatically, and I just don't know where?
Trying to compare directories, of files, between machines, before rebuilding.
You should try Kompare (part of kdesdk3). It is a great diff utility. After it is installed, you will find it in Kmenu>Development>Revision Control. -- Joe Morris Registered Linux user 231871
On Saturday 27 May 2006 10:37, lerninlinux@comcast.net wrote:
I have read the man page, and I think I am overlooking something, or am entering something wrong. I am trying to use the diff command, between a file on my pc, and one on my portable hard drive. Is there a way I can send the results to a txt file, or a file I could read in an editor? Or does this save the results automatically, and I just don't know where?
Diff will send the results where you tell it to. It sends the output to stdout, which is by default your shell screen. You can pipe the results to the text editor of you choice or directly to a file. For example, to use vim, you would do something like: :~> diff [options, files, etc for diff] | vim Scott K
participants (3)
-
Joe Morris (NTM)
-
lerninlinux@comcast.net
-
Scott Kitterman