Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] diff command and saving results to a file
  • From: lerninlinux@xxxxxxxxxxx
  • Date: Sat, 27 May 2006 15:20:54 +0000
  • Message-id: <052720061520.23413.44786E55000EF0EE00005B752200761438989A0207040207029D0A04@xxxxxxxxxxx>

-------------- Original message ----------------------
From: Scott Kitterman <opensuse@xxxxxxxxxxxxx>
> On Saturday 27 May 2006 10:37, lerninlinux@xxxxxxxxxxx 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?

< Previous Next >
Follow Ups