MAN page from RedHat Other textutils-1.22-1.1.i386.rpm
WC
Section: User Commands (1)
Updated: GNU Text Utilities
Index NAME
wc - print the number of bytes, words, and lines in files
SYNOPSIS
wc[-clw] [--bytes] [--chars] [--lines] [--words][--help] [--version] [file...]
DESCRIPTION
This documentation is no longer being maintained and may be inaccurateor incomplete. The Texinfo documentation is now the authoritative source.
This manual pagedocuments the GNU version ofwc.wccounts the number of bytes, whitespace-separated words, and newlinesin each given file, or the standard input if none are given or when afile named `-' is given. It prints one line of counts for each file,and if the file was given as an argument, it prints the filenamefollowing the counts. If more than one filename is given,wcprints a final line containing the cumulative counts, with thefilename `total'. The counts are printed in the order: lines, words,bytes.
By default,wcprints all three counts. Options can specify that only certain countsbe printed. Options do not undo others previously given, sowc --bytes --wordsprints both the byte counts and the word counts.
OPTIONS
- -c, --bytes, --chars
- Print only the byte counts.
- -w, --words
- Print only the word counts.
- -l, --lines
- Print only the newline counts.
- --help
- Print a usage message and exit with a status code indicating success.
- --version
- Print version information on standard output then exit.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
This document was created byman2html,using the manual pages.