file compare
Syntax
file compare (files filename filename)
< context | unified>
<ignore-white-space >
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Compare two local files and describe the differences between them in default, context,
or unified output styles:
•
Default
—In the first line of output,
c
means lines were changed between the two files,
d
means lines were deleted between the two files, and
a
means lines were added
between the two files. The numbers preceding this alphabetical marker represent the
first file, and the lines after the alphabetical marker represent the second file. A left
angle bracket (
<
) in front of output lines refers to the first file. A right angle bracket (
>
)
in front of output lines refers to the second file.
•
Context
—Display is divided into two parts. The first part is the first file; the second part
is the second file. Output lines preceded by an exclamation point (
!
) have changed.
Additions are marked with a plus sign (
+),
and deletions are marked with a
minus sign (
-)
.
•
Unified
—Display is preceded by the line number from the first and the second file
(
xx
,
xxx
,
x
). Before the line number, additions to the file are marked with a plus sign (
+),
and deletions to the file are marked with a minus sign (
-)
. The body of the output
contains the affected lines. Changes are viewed as additions plus deletions.
Options
files
filename
—Names of two local files to compare.
context
—(Optional) Display output in context format.
ignore-white-space
—(Optional) Ignore changes in amount of white space.
unified
—(Optional) Display output in unified format.
Required Privilege
Level
none
List of Sample Output
file compare files on page 729
file compare files context on page 729
file compare files unified on page 729
file compare files unified ignore-white-space on page 730
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Copyright © 2010, Juniper Networks, Inc.
728
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...