-------------- Original message ---------------------- From: Scott Kitterman <opensuse@kitterman.com>
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
How do I pipe the results to the text file? Is that "|" the command?