OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / draft / man1 / wc.1
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
4 .\"
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.
8 .\"
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU wc man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .\"
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
18 .\"
19 .TH WC 1 "7 October 2002" "GNU textutils 2.1"
20 .\"O .SH NAME
21 .\"O \fBwc\fR \- print byte, word, and line counts
22 .SH Ì¾Á°
23 wc \- ¥Õ¥¡¥¤¥ë¤Î¥Ð¥¤¥È¿ô¡¦Ã±¸ì¿ô¡¦¹Ô¿ô¤òɽ¼¨¤¹¤ë
24 .\"O .SH SYNOPSIS
25 .SH ½ñ¼°
26 .B wc
27 .RB [ \-clmwL ]
28 .RB [ \-\-bytes ]
29 .RB [ \-\-chars ]
30 .RB [ \-\-lines ]
31 .RB [ \-\-max\-line\-length ]
32 .RB [ \-\-words ]
33 .\"nakano modified next 2 lines.
34 [\fIFILE\fR]...
35 .br
36 .BR wc " [" \-\-help "] [" \-\-version ]
37 .\"O .SH DESCRIPTION
38 .SH ÀâÌÀ
39 .\"O .B wc
40 .\"O counts the number of bytes, whitespace-separated words, and newlines in each
41 .\"O given 
42 .\"O .IR FILE .
43 .\"O If
44 .\"O .I FILE
45 .\"O is omitted or if it is a
46 .\"O .RB ` \- ',
47 .\"O standard input is used for reading.
48 .B wc
49 ¤Ï»ØÄꤵ¤ì¤¿³Æ
50 .I FILE
51 ¤Î¥Ð¥¤¥È¿ô¡¦¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿Ã±¸ì¤Î¿ô¡¦¹Ô¿ô¤ò¿ô¤¨¤ë¡£
52 .I FILE
53 ¤¬°ì¤Ä¤âÍ¿¤¨¤é¤ì¤Ê¤¤¤Èɸ½àÆþÎϤ«¤éÆɤ߹þ¤à¡£¤Þ¤¿
54 .I FILE
55 ¤¬
56 .RB ` \- '
57 ¤À¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ïɸ½àÆþÎϤ¬ÍѤ¤¤é¤ì¤ë¡£
58
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
62 .\"O counts.
63 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢
64 .B wc
65 ¤Ï 3 ¤ÄÁ´¤Æ¤ò½ÐÎϤ¹¤ë¡£
66 ¥ª¥×¥·¥ç¥ó»ØÄê¤Ë¤è¤ê½ÐÎϤ¹¤ë¹àÌܤò»ØÄê¤Ç¤­¤ë¡£
67 ¥ª¥×¥·¥ç¥ó¤ÏÀè¤Ë»ØÄꤷ¤¿¤â¤Î¤ò¼è¤ê¾Ã¤¹¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
68 ¤·¤¿¤¬¤Ã¤Æ `wc \-\-bytes \-\-words'
69 ¤Ï¥Ð¥¤¥È¿ô¤Èñ¸ì¿ô¤ÎξÊý¤ò½ÐÎϤ¹¤ë¡£
70
71 .\"O .B wc
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,
74 .\"O bytes.
75 .B wc
76 ¤ÏºÇ¸å¤Î¹Ô¤Ë³Æ
77 .I FILE
78 ¤Î¥«¥¦¥ó¥È¿ô¤ò¹ç·×¤·¤Æɽ¼¨¤¹¤ë¡£
79 ·ë²Ì¤Ï¡¢²þ¹Ô¿ô¡¦Ã±¸ì¿ô¡¦¥Ð¥¤¥È¿ô¤Î½ç¤Ëɽ¼¨¤µ¤ì¤ë¡£
80 .\"O .SH OPTIONS
81 .SH ¥ª¥×¥·¥ç¥ó
82 .TP
83 .B \-c, \-\-bytes
84 .\"O Print only the byte counts.
85 ¥Ð¥¤¥È¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
86 ¥í¥±¡¼¥ë¤Ë¤è¤Ã¤Æ¤Ï¡¢\fB\-\-chars\fR ¤È¤Ï·ë²Ì¤¬°Û¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
87 .TP
88 .B \-l, \-\-lines
89 .\"O Print only the newline counts.
90 ²þ¹Ô¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
91 .TP
92 .B \-m, \-\-chars
93 .\"O Print only character counts, which may differ from \fB-\-bytes\fR depending
94 .\"O on the locale.
95 ʸ»ú¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
96 ¥í¥±¡¼¥ë¤Ë¤è¤Ã¤Æ¤Ï¡¢\fB\-\-bytes\fR ¤È¤Ï·ë²Ì¤¬°Û¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
97 .TP
98 .B \-w, \-\-words
99 .\"O Print only the word counts.
100 ñ¸ì¿ô¤À¤±¤ò½ÐÎϤ¹¤ë¡£
101 .TP            
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 ¤½¤ì¤é¤Î¤¦¤Á¤Ç¤ÎºÇÂçŤòɽ¼¨¤¹¤ë (¹ç·×¤Ç¤Ï¤Ê¤¤)¡£
108 .TP
109 .B "\-\-help"
110 .\"O Print a usage message on standard output and exit successfully.
111 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
112 .TP
113 .B "\-\-version"
114 .\"O Print version information on standard output then exit successfully.
115 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
116 .\"O .SH POSIX NOTES
117 .SH POSIX ¤ÎÃí°Õ
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.
122 .B wc
123 ¤Ï 7 ·å¤Î¥Õ¥£¡¼¥ë¥É¤Ë±¦µÍ¤Ç¥«¥¦¥ó¥È¿ô¤òɽ¼¨¤¹¤ë¡£
124 ¤·¤«¤· \fBPOSIX\fP ¤Ï¡¢¥«¥¦¥ó¥È¤Î´Ö (¤ÈºÇ¸å¤Î¥Õ¥¡¥¤¥ë̾¤È¤Î´Ö) ¤Ë¤Ï
125 ¥¹¥Ú¡¼¥¹°ì¤Ä¤À¤±¤ò¤ª¤¯¤è¤¦¤ËÌ¿¤¸¤Æ¤¤¤ë¡£¸å¼Ô¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢
126 ´Ä¶­ÊÑ¿ô \fBPOSIXLY_CORRECT\fR ¤ò»ØÄꤹ¤ë¤ÈÆÀ¤é¤ì¤ë¡£
127 .\"O .SH NOTES
128 .SH Ãí°Õ
129 .\"O Report bugs to bug-textutils@gnu.org.
130 .\"O .br
131 .\"O Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
132 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-textutils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
133 .br
134 ¤³¤Î¥Ú¡¼¥¸¤Ï Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> ¤¬ºîÀ®¤·¤Þ¤·¤¿¡£