How to Use the Diff Utility

Use the Diff utility to find differences between two text files.

To Access Diff from the Dashboard

To run Diff from the Support Tools Dashboard:

1.Use the System Select screen to select the system you want to work with.

2.From the Dashboard menu, select Common Tools > Diff.

3.In the Arguments field, enter desired arguments, as described in the Using section below.

Note: When entering arguments, the Diff command is already implied. Do not enter it in the Arguments field.

4.Specify the command duration time or accept the default (60 seconds). This is the amount of time the command will attempt to run before terminating.

5.If desired, check Elevate Command Priority. This ensures the command will run regardless of the level of server activity.

6.Click the Run button.

Using Diff

Syntax

diff [ -rebidtvo? ] [-O <colors>] oldfile newfile

If diff is given two directories, it will diff each of the files in those directories.

If diff is given two binary files, it will compare them and issue a report if they are different.

If diff is given the -roption, it will recursively diff each of the files in each subdirectory.

If diff is given the -eoption, it will output a script suitable for feeding into EDLIN to update oldfile to create newfile.

Otherwise, diff outputs lines of the form:

Cisco Support Tools 1.0 User Guide

How to Use the Diff Utility 218

Page 218
Image 218
Cisco Systems 1.0 (1) manual How to Use the Diff Utility, To Access Diff from the Dashboard, Using Diff