blob: 677c2937fbfdd5bd247be2659f436249b8899a93 [file] [log] [blame]
<head>
<title>wc(1) - Plan 9 from User Space</title>
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
</head>
<body bgcolor=#ffffff>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr height=10><td>
<tr><td width=20><td>
<tr><td width=20><td><b>WC(1)</b><td align=right><b>WC(1)</b>
<tr><td width=20><td colspan=2>
<br>
<p><font size=+1><b>NAME </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
wc &ndash; word count<br>
</table>
<p><font size=+1><b>SYNOPSIS </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<tt><font size=+1>wc</font></tt> [ <tt><font size=+1>&#8722;lwrbc</font></tt> ] [ <i>file ...</i> ]<br>
</table>
<p><font size=+1><b>DESCRIPTION </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<i>Wc</i> counts lines, words, runes, syntactically-invalid UTF codes
and bytes in the named <i>files</i>, or in the standard input if no file
is named. A word is a maximal string of characters delimited by
spaces, tabs or newlines. The count of runes includes invalid
codes.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
If the optional argument is present, just the specified counts
(lines, words, runes, broken UTF codes or bytes) are selected
by the letters <tt><font size=+1>l</font></tt>, <tt><font size=+1>w</font></tt>, <tt><font size=+1>r</font></tt>, <tt><font size=+1>b</font></tt>, or <tt><font size=+1>c</font></tt>. Otherwise, lines, words and bytes
(<tt><font size=+1>&#8722;lwc</font></tt>) are reported.<br>
</table>
<p><font size=+1><b>SOURCE </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
<tt><font size=+1>/usr/local/plan9/src/cmd/wc.c<br>
</font></tt>
</table>
<p><font size=+1><b>BUGS </b></font><br>
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
The Unicode Standard has many blank characters scattered through
it, but <i>wc</i> looks for only ASCII space, tab and newline.
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
<i>Wc</i> should have options to count suboptimal UTF codes and bytes
that cannot occur in any UTF code.<br>
</table>
<td width=20>
<tr height=20><td>
</table>
<!-- TRAILER -->
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr height=15><td width=10><td><td width=10>
<tr><td><td>
<center>
<a href="../../"><img src="../../dist/spaceglenda100.png" alt="Space Glenda" border=1></a>
</center>
</table>
<!-- TRAILER -->
</body></html>