diff options
author | Tom Rhodes <trhodes@FreeBSD.org> | 2005-02-23 22:40:45 +0000 |
---|---|---|
committer | Tom Rhodes <trhodes@FreeBSD.org> | 2005-02-23 22:40:45 +0000 |
commit | c566c001e6a25350cabab5d00ffaa84a2352693e (patch) | |
tree | c4bb5e33328f6443a586299c87dbd896db09a1e4 /usr.bin/wc | |
parent | 0439a1cb840cc29619649bf173f98186e472a66e (diff) | |
download | src-test-c566c001e6a25350cabab5d00ffaa84a2352693e.tar.gz src-test-c566c001e6a25350cabab5d00ffaa84a2352693e.zip |
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
Notes
Notes:
svn path=/head/; revision=142332
Diffstat (limited to 'usr.bin/wc')
-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 d5284dcea8a3f..d7db4b7a9ac2f 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 |