According to Peter Schuller: While burning my CPU.
> 
> >       I need to compare two .config files, and have an output of what's
> > different between them. How would I do this?
> 
> How do you want the output formatted?
> 
> There's a program called "diff" that is the defacto standard tool for creating
> patches - mainly inteded for source code. It will prodoce a file documenting
> the changes between two files - and those changes can be applied to an old file
> using "patch".

Correct, but 'diff' has many options, more than half do not concern "patch"
files as such, if the person just wants to see the actual changes in a
laymans terms, then i would suggest doing.

diff --side-by-side file1 file2 >diffile
Or
diff -y file1 file2 >diffile      which is the same command.

Use an editor to view the output as lines will be long.

> 
> Is that what you want?
> 
> / Peter Schuller
> 
> - ---
> PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
> E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
> Help create a free Java based operating system - www.jos.org.
> 

--
Regards Richard.
[EMAIL PROTECTED]

Reply via email to