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) FreeBSD General Commands Manual wc(1)

wc - count bytes, runes, words, and lines

wc [-v] [-lwrbc] [--] [file ... ]

wc counts bytes, runes, words, and lines in its input files and writes the result to the standard output.

-v
The -v option instructs wc to print its version number and exit.
-l
The -l option instructs wc to print the number of lines.
-w
The -w option instructs wc to print the number of words.
-r
The -r option instructs wc to print the number of runes (good and bad UTF sequences).
-b
The -b option instructs wc to print the number of bad UTF sequences.
-c
The -c option instructs wc to print the number of characters.
--
The -- (double dash) option indicates the end of options.

wc reads each file in turn and counts the number of lines, words, runes, bad UTF sequences, and bytes. If no files are specified or a file is - (dash), wc reads from the standard input.

For each file, the requested counts are printed on a single line in the order: lines, words, runes, bad UTF sequences, and bytes. If the file is not the standard input, its name is also printed.

If more than one file is specified, a line giving the total counts is printed.

If none of the -lwrbc options are specified, wc behaves as if -lwc had been specified.

Count the number of lines in /etc/passwd:

wc -l /etc/passwd

utf(4)

None known.

http://pobox.com/~Alan.Watson/software.html

Alan Watson (Alan.Watson@pobox.com).
1.6.0 of 97/02/25

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.