C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
Utility Commands on Cisco IOS XR Software
utility uniq
SMR-767
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
utility uniq
To display or remove repeated lines in a file, use the
utility uniq
command in EXEC mode or
administration EXEC mode.
utility uniq [
[
afterChars
number
] [
afterField
number
] [
nonRepeating
|
repeating
] [
count
]]
[
infile
input-file
] [
outfile
output-file
] [
usage
] [
WORD
]
Syntax Description
Defaults
If no input file is specified, then the standard input is used.
If no output file is specified, then the standard output is used.
afterChars
number
(Optional) (
-s
) Ignores the first characters on each line of the input file. Use
the
number
argument to specify the number of characters. The range is 0 to
4294967295.
afterField
number
(Optional) (
-f
) Ignores the first fields on each line of the input file. Use the
number
argument to specify the number of fields. The range is 0 to
4294967295.
count
(Optional) (
-c
) Displays the number of times the line appeared in the input
file at the beginning of each output line.
nonRepeating
(Optional) (
-u
) Displays only the nonrepeating lines from the input file
(repeating lines are not displayed).
repeating
(Optional) (
-d
) Displays only the repeating lines from the input file
(nonrepeating lines are not displayed).
infile
input-file
(Optional) Specifies an input file for processing. The
input-file
argument
specifies the device, directory, and filename of the input file. If no input file
is specified, then the standard input (keyboard) is used.
The
input-file
syntax is:
device
:
[
/
directory-path
]
/
filename
Include the alias for the
device
argument, followed by a colon, and,
optionally, the name of a directory. Use the online help system to display the
available storage devices and network protocols.
outfile
output-file
(Optional) Specifies an output file. The
output-file
argument specifies the
device, directory, and filename of the output file. If no file is specified, then
the standard output (display) is used.
The
input-file
syntax is:
device
:
[
/
directory-path
]
/
filename
Include the alias for the
device
argument, followed by a colon, and,
optionally, the name of a directory. Use the online help system to display the
available storage devices and network protocols.
usage
(Optional) Displays the UNIX options supported by this command.
WORD
(Optional) UNIX command-line option string. The maximum number of
characters is 20.