1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
12 .\" man pages are NOT obsolete!
13 .\" <ragnar@ragnar-hojland.com>
15 .\" Japanese Version Copyright (c) 2000 NAKANO Takeo all rights reserved.
16 .\" Translated Sun 12 Mar 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
17 .\" Updated Wed 14 Jul 2004 by NAKANO Takeo
19 .TH WC 1 "7 October 2002" "GNU textutils 2.1"
21 .\"O \fBwc\fR \- print byte, word, and line counts
23 wc \- ¥Õ¥¡¥¤¥ë¤Î¥Ð¥¤¥È¿ô¡¦Ã±¸ì¿ô¡¦¹Ô¿ô¤òɽ¼¨¤¹¤ë
31 .RB [ \-\-max\-line\-length ]
33 .\"nakano modified next 2 lines.
36 .BR wc " [" \-\-help "] [" \-\-version ]
40 .\"O counts the number of bytes, whitespace-separated words, and newlines in each
45 .\"O is omitted or if it is a
47 .\"O standard input is used for reading.
51 ¤Î¥Ð¥¤¥È¿ô¡¦¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿Ã±¸ì¤Î¿ô¡¦¹Ô¿ô¤ò¿ô¤¨¤ë¡£
53 ¤¬°ì¤Ä¤âÍ¿¤¨¤é¤ì¤Ê¤¤¤Èɸ½àÆþÎϤ«¤éÆɤ߹þ¤à¡£¤Þ¤¿
57 ¤À¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ïɸ½àÆþÎϤ¬ÍѤ¤¤é¤ì¤ë¡£
59 .\"O By default, it prints all three counts. Options can specify that
60 .\"O only certain counts be printed. Options do not undo others previously
61 .\"O given, so `wc \-\-bytes \-\-words' prints both the byte counts and the word
65 ¤Ï 3 ¤ÄÁ´¤Æ¤ò½ÐÎϤ¹¤ë¡£
66 ¥ª¥×¥·¥ç¥ó»ØÄê¤Ë¤è¤ê½ÐÎϤ¹¤ë¹àÌܤò»ØÄê¤Ç¤¤ë¡£
67 ¥ª¥×¥·¥ç¥ó¤ÏÀè¤Ë»ØÄꤷ¤¿¤â¤Î¤ò¼è¤ê¾Ã¤¹¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
68 ¤·¤¿¤¬¤Ã¤Æ `wc \-\-bytes \-\-words'
69 ¤Ï¥Ð¥¤¥È¿ô¤Èñ¸ì¿ô¤ÎξÊý¤ò½ÐÎϤ¹¤ë¡£
72 .\"O also prints a final line containing the cumulative counts, with the
73 .\"O \fIFILE\fR total. The counts are printed in this order: newlines, words,
78 ¤Î¥«¥¦¥ó¥È¿ô¤ò¹ç·×¤·¤Æɽ¼¨¤¹¤ë¡£
79 ·ë²Ì¤Ï¡¢²þ¹Ô¿ô¡¦Ã±¸ì¿ô¡¦¥Ð¥¤¥È¿ô¤Î½ç¤Ëɽ¼¨¤µ¤ì¤ë¡£
84 .\"O Print only the byte counts.
85 ¥Ð¥¤¥È¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
86 ¥í¥±¡¼¥ë¤Ë¤è¤Ã¤Æ¤Ï¡¢\fB\-\-chars\fR ¤È¤Ï·ë²Ì¤¬°Û¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
89 .\"O Print only the newline counts.
90 ²þ¹Ô¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
93 .\"O Print only character counts, which may differ from \fB-\-bytes\fR depending
95 ʸ»ú¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
96 ¥í¥±¡¼¥ë¤Ë¤è¤Ã¤Æ¤Ï¡¢\fB\-\-bytes\fR ¤È¤Ï·ë²Ì¤¬°Û¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
99 .\"O Print only the word counts.
100 ñ¸ì¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
102 .B \-L, \-\-max\-line\-length
103 .\"O Print only the maximum line length per file, and if there is more than one
104 .\"O file also print the maximum (not the sum) of those lengths.
105 ¥Õ¥¡¥¤¥ëÃæ¤Î¹Ô¤ÎºÇÂçŤÀ¤±¤òɽ¼¨¤¹¤ë¡£
106 °ì¤Ä°Ê¾å¤Î¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï¡¢
107 ¤½¤ì¤é¤Î¤¦¤Á¤Ç¤ÎºÇÂçŤòɽ¼¨¤¹¤ë (¹ç·×¤Ç¤Ï¤Ê¤¤)¡£
110 .\"O Print a usage message on standard output and exit successfully.
111 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
114 .\"O Print version information on standard output then exit successfully.
115 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
118 .\"O \fBwc\fR prints counts right justifying them in a 7 characters long field,
119 .\"O but \fBPOSIX\fR mandates to be exactly one space between the counts and the
120 .\"O filenames; you can get this last format by setting the \fBPOSIXLY_CORRECT\fR
121 .\"O environment variable.
123 ¤Ï 7 ·å¤Î¥Õ¥£¡¼¥ë¥É¤Ë±¦µÍ¤Ç¥«¥¦¥ó¥È¿ô¤òɽ¼¨¤¹¤ë¡£
124 ¤·¤«¤· \fBPOSIX\fP ¤Ï¡¢¥«¥¦¥ó¥È¤Î´Ö (¤ÈºÇ¸å¤Î¥Õ¥¡¥¤¥ë̾¤È¤Î´Ö) ¤Ë¤Ï
125 ¥¹¥Ú¡¼¥¹°ì¤Ä¤À¤±¤ò¤ª¤¯¤è¤¦¤ËÌ¿¤¸¤Æ¤¤¤ë¡£¸å¼Ô¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢
126 ´Ä¶ÊÑ¿ô \fBPOSIXLY_CORRECT\fR ¤ò»ØÄꤹ¤ë¤ÈÆÀ¤é¤ì¤ë¡£
129 .\"O Report bugs to bug-textutils@gnu.org.
131 .\"O Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
132 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-textutils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
134 ¤³¤Î¥Ú¡¼¥¸¤Ï Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> ¤¬ºîÀ®¤·¤Þ¤·¤¿¡£