Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/w/wc.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/w/wc.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/w/wc.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/w/wc.html on line 8
Count words, lines, and bytes (POSIX)
wc [-clw] [-ht] [file...]
Neutrino
- -c
- Write to the standard output the number of bytes in each input file.
- -h
- (QNX Neutrino extension) Display headers.
- -l
- (“el”) Write to the standard output the number of lines
in each input file.
- -t
- (QNX Neutrino extension) Don't display the totals when counting more than one
file.
- -w
- Write to the standard output the number of words in each input file.
- file
- The pathname of an input file. If no files are specified, the standard
input is used.
For each input file, the wc utility counts lines, words,
and characters (bytes) in the file and writes the results to the standard
output.
It considers a word to be a string of
characters delimited by white space.
If you don't specify any options, wc writes counts of
lines, words and characters, in that order. If you specify one or
more of the options -l, -w, or
-c, the wc utility reports only the information
selected for the specified options. The order in which you specify these
options determines the order in which the number of lines, words, and bytes are
written.
If you specify more than one input file, wc also writes
a total count for all named files, for each option.
You can specify the -t option to suppress the totals.
To get its line count, wc counts newline
characters. If the last line of a file lacks the newline
terminator, it isn't counted.
- 0
- Success.
- > 0
- An error occurred.
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/w/wc.html on line 143
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/w/wc.html on line 143