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 wc
SMR-769
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
utility wc
To count words, lines, or bytes in a file, use the
utility wc
command in EXEC mode or administration
EXEC mode.
utility wc
[
bytes
] [
lines
] [
words
] [
file
input-file
] [
usage
] [
WORD
]
Syntax Description
Defaults
Output is displayed in the order bytes, words, and lines, even if the options are entered in a different
order.
Command Modes
EXEC
Administration EXEC
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Output is displayed in the following order:
•
When keywords are entered, the output appears in the order bytes, words, and lines.
•
When no keyword is entered, the output appears in the order lines, words, and bytes.
•
When any UNIX equivalent options are entered, the output appears in the order specified by the
options. For example, if the command
utility wc -w -l -c
is entered, the output appears in the order
words, lines, and bytes.
bytes
(Optional) (
-c
) Displays the number of bytes in each input file.
lines
(Optional) (
-l
) (“el”) Displays the number of lines in each input file.
words
(Optional) (
-w
) Displays the number of words in each input file.
file
input-file
(Optional) Specifies the input file. 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.
usage
(Optional) Displays the UNIX options supported by this command.
WORD
(Optional) UNIX command-line option string. The maximum number of
characters is 20.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.