diff options
author | trhodes <trhodes@FreeBSD.org> | 2005-02-23 22:40:45 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2005-02-23 22:40:45 +0000 |
commit | e9418b71b6bf695d7c977c26a29113cb19f3d70c (patch) | |
tree | c4bb5e33328f6443a586299c87dbd896db09a1e4 /usr.bin | |
parent | cc07eaae1122620db9a5598435917506e0ab8697 (diff) | |
download | FreeBSD-src-e9418b71b6bf695d7c977c26a29113cb19f3d70c.zip FreeBSD-src-e9418b71b6bf695d7c977c26a29113cb19f3d70c.tar.gz |
Add better mdoc(7) mark up, clean up wording, better describe the effects
of some arguments.
PR: 47705
Based on a patch submitted by: Gary W. Swearingen <swear@attbi.com>
Glanced at by: simon
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/wc/wc.1 | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/usr.bin/wc/wc.1 b/usr.bin/wc/wc.1 index d5284dc..d7db4b7 100644 --- a/usr.bin/wc/wc.1 +++ b/usr.bin/wc/wc.1 @@ -35,7 +35,7 @@ .\" @(#)wc.1 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd June 13, 2002 +.Dd February 23, 2005 .Dt WC 1 .Os .Sh NAME @@ -50,11 +50,17 @@ The .Nm utility displays the number of lines, words, and bytes contained in each input -.Ar file -(or standard input, by default) to the standard output. -A line is defined as a string of characters delimited by a <newline> -character, -and a word is defined as a string of characters delimited by white space +.Ar file , +or standard input (if no file is specified) to the standard output. +A line is defined as a string of characters delimited by a +.Aq newline +character. +Characters beyond the final +.Aq newline +character will not be included +in the line count. +.Pp +A word is defined as a string of characters delimited by white space characters. White space characters are the set of characters for which the .Xr iswspace 3 @@ -68,6 +74,9 @@ The following options are available: .It Fl c The number of bytes in each input file is written to the standard output. +This will cancel out any prior usage of the +.Fl w +option. .It Fl l The number of lines in each input file is written to the standard output. @@ -77,6 +86,9 @@ If the current locale does not support multibyte characters, this is equivalent to the .Fl c option. +This will cancel out any prior usage of the +.Fl c +option. .It Fl w The number of words in each input file is written to the standard output. @@ -85,6 +97,8 @@ is written to the standard output. When an option is specified, .Nm only reports the information requested by that option. +The order of output always takes the form of line, word, +byte, and file name. The default action is equivalent to specifying the .Fl c , l and @@ -93,6 +107,9 @@ options. .Pp If no files are specified, the standard input is used and no file name is displayed. +The prompt will accept input until receiving EOF, or +.Bq ^D +in most environments. .Sh ENVIRONMENT The .Ev LANG , LC_ALL |