GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WC(1) User Commands WC(1)

wc - word count

wc [-c|-m] [-lw] [file ...]

Wc determines the number of lines, words and characters contained in each file and writes the count in that order to standard output, separated by spaces and followed by the filename. If no file argument is given, standard input is used and no filename is printed. If more than one input file was processed successfully, a grand total for all files is printed in the line of output.

The wc command accepts the following options; if any of them is present, output is restricted to the specified fields:

Print the number of bytes.
Print the number of lines (i. e. newline characters).
Print the number of characters instead of the number of bytes. The number of characters equals the number of bytes in singlebyte locales. In multibyte locales, this is the count of byte sequences forming a valid character. This option was introduced by POSIX.2.
Print the number of words. With /usr/local/heirloom/usr/5bin/wc and /usr/local/heirloom/usr/5bin/s42/wc, a word is a string of characters that contains at least one graphical character and is delimited by blank or newline characters. With /usr/local/heirloom/usr/5bin/posix/wc and /usr/local/heirloom/usr/5bin/posix2001/wc, a word is a nonempty string of characters that is delimited by white space.

See locale(7).
Determines the byte sequences that form a character for the -m option and for the interpretation of white space, graphical characters and newlines.

cksum(1), locale(7)

2/6/05 Heirloom Toolchest

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.