1 .\" This file documents the GNU utilities for finding files that match
2 .\" certain criteria and performing various operations on them.
4 .\" Copyright (C) 1994 Free Software Foundation, Inc.
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
10 .\" Permission is granted to copy and distribute modified versions of
11 .\" this manual under the conditions for verbatim copying, provided that
12 .\" the entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
15 .\" Permission is granted to copy and distribute translations of this
16 .\" manual into another language, under the above conditions for modified
17 .\" versions, except that this permission notice may be stated in a
18 .\" translation approved by the Foundation.
20 .\" Japanese Version Copyright (c) 1997 NAKANO Takeo all rights reserved.
21 .\" Translated Thu May 11 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
22 .\" Modified Fri 14 Aug 1998 by NAKANO Takeo -- bug fixes.
24 .\"WORD end of file string ¥Õ¥¡¥¤¥ë½ªÎ»Ê¸»úÎó
26 .TH XARGS 1L \" -*- nroff -*-
28 xargs \- ɸ½àÆþÎϤ«¤é¥³¥Þ¥ó¥É¥é¥¤¥ó¤òºîÀ®¤·¡¢¤½¤ì¤ò¼Â¹Ô¤¹¤ë
31 [\-0prtx] [\-e[eof-str]] [\-i[replace-str]] [\-l[max-lines]]
32 [\-n max-args] [\-s max-chars] [\-P max-procs] [\-\-null] [\-\-eof[=eof-str]]
33 [\-\-replace[=replace-str]] [\-\-max-lines[=max-lines]] [\-\-interactive]
34 [\-\-max-chars=max-chars] [\-\-verbose] [\-\-exit] [\-\-max-procs=max-procs]
35 [\-\-max-args=max-args] [\-\-no-run-if-empty] [\-\-version] [\-\-help]
36 [command [initial-arguments]]
38 ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï GNU ÈÇ
40 ¤Ë´Ø¤·¤Æµ½Ò¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
42 ¤Ï¤Þ¤ºÉ¸½àÆþÎϤ«¤é¶õÇò¤Þ¤¿¤Ï²þ¹Ô¤Ç¶èÀÚ¤é¤ì¤¿Ê¸»úÎ󷲤òÆɤ߹þ¤à
43 (¶õÇò¤Ï¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó¡¦¥·¥ó¥°¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó¡¦
44 ¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤Ë¤è¤Ã¤Æ¥×¥í¥Æ¥¯¥È¤Ç¤¤ë)¡£¤½¤·¤Æ
46 (¥Ç¥Õ¥©¥ë¥È¤Ï /bin/echo) ¤Ëʸ»úÎ󷲤ò³¤±¤¿¥³¥Þ¥ó¥É¥é¥¤¥ó¤ò¼Â¹Ô¤¹¤ë¡£
49 \fIcommand\fR ¤Èɸ½àÆþÎϤ«¤éÅϤµ¤ì¤¿Ê¸»úÎó¤Î´Ö¤Ë¡¢
50 \fIcommand\fR ¤Ø¤Î°ú¤¿ô¤È¤·¤ÆÅϤµ¤ì¤ë¡£
51 ɸ½àÆþÎϤζõ¹Ô¤Ï̵»ë¤µ¤ì¤ë¡£
54 ¤¬½ªÎ»¤¹¤ë¤È¤¤ÎÌá¤êÃͤϰʲ¼¤ÎÄ̤ꡣ
58 123 command ¼Â¹Ô¤Î¤¤¤º¤ì¤«¤Ë¤ª¤¤¤Æ¡¢ 1-125 ¤ÎÌá¤êÃͤ¬Ê֤ä¿¡£
59 124 command ¤¬ 255 ¤òÌá¤êÃͤȤ·¤ÆÊÖ¤·¤¿¡£
60 125 command ¤¬¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ kill ¤µ¤ì¤¿¡£
61 126 command ¤¬¼Â¹Ô¤Ç¤¤Ê¤¤¡£
62 127 command ¤¬¸«¤Ä¤«¤é¤Ê¤¤¡£
63 1 ¾¤Î¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¡£
68 ɸ½àÆþÎϤ«¤é¤Îʸ»úÎó¤Î¶èÀÚ¤ê¤Ë¡¢¶õÇò¤Ç¤Ï¤Ê¤¯¥Ì¥ëʸ»ú¤¬»È¤ï¤ì¤Æ¤¤¤ë¤È¤ß¤Ê¤¹¡£
69 ¤Þ¤¿°úÍÑÉä¤ä¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤ËÆÃÊ̤ΰÕÌ£¤ò»ý¤¿¤»¤º¡¢
70 ¤¹¤Ù¤Æ¤Îʸ»ú¤ò¤½¤Î¤Þ¤ÞÍѤ¤¤ë¡£
71 ¥Õ¥¡¥¤¥ë½ªÎ»Ê¸»úÎó¤â̵¸ú¤È¤Ê¤ê¡¢Â¾¤Îʸ»úÎó¤ÈƱ¤¸¤è¤¦¤Ë°·¤ï¤ì¤ë¡£
73 ¶õÇò¡¦°úÍÑÉ䡦¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å
74 ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¤ËÍÍѤǤ¢¤í¤¦¡£
75 GNU find ¤Î \-print0 ¥ª¥×¥·¥ç¥ó¤Î½ÐÎϤò¡¢
76 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿ \fIxargs\fR ¤ÎÆþÎϤȤ¹¤ë¤ÈÎɤ¤¡£
78 .I "\-\-eof[=eof-str], \-e[eof-str]"
79 ¥Õ¥¡¥¤¥ë½ªÎ»Ê¸»úÎó¤ò \fIeof-str\fR ¤ËÀßÄꤹ¤ë¡£
80 ÆþÎϤˤ³¤Î¥Õ¥¡¥¤¥ë½ªÎ»Ê¸»úÎ󤬸½¤ì¤ë¤È»Ä¤ê¤ÎÆþÎϤÏ̵»ë¤µ¤ì¤ë¡£
81 \fIeof-str\fR ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢¥Õ¥¡¥¤¥ë½ªÎ»Ê¸»úÎó¤ÏÀßÄꤵ¤ì¤Ê¤¤¡£
82 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
83 ¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë½ªÎ»Ê¸»úÎó¤Ï "_" ¤È¤Ê¤ë¡£
87 ¤ÎÍøÍÑË¡¤Ë´Ø¤¹¤ë¤Þ¤È¤á¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
89 .I "\-\-replace[=replace-str], \-i[replace-str]"
90 \fIinitial arguments\fR ¤ÎÃæ¤Î \fIreplace-str\fR ¤ò¡¢
91 ɸ½àÆþÎϤ«¤éÆɤó¤À̾Á°¤ÇÃÖ¤´¹¤¨¤ë¡£
92 ¥¯¥©¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¶õÇòʸ»ú¤òʸ»úÎó¤Î¶èÀÚ¤ê¤È¤ß¤Ê¤µ¤Ê¤¤¡£
93 \fIreplace-str\fR ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Ï¡¢ "{}" ¤¬¥Ç¥Õ¥©¥ë¥È¤ÎÃÖ´¹Ê¸»ú¤È¤Ê¤ë
94 (`find \-exec' ¤ÈƱÍÍ)¡£
95 ¼«Æ°Åª¤Ë \fI\-x\fP ¤È \fI\-l 1\fP ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤¿¤³¤È¤Ë¤Ê¤ë¡£
97 .I "\-\-max-lines[=max-lines], -l[max-lines]"
98 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤¢¤¿¤êºÇÂç \fImax-lines\fR ¤ÎÆþÎÏ¹Ô (¶õ¹Ô°Ê³°) ¤òÍѤ¤¤ë¡£
99 ¾Êά¤µ¤ì¤¿¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 1¡£
100 ÆþÎϹԤ¬¶õÇòʸ»ú¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¼¡¤Î¹Ô¤Ë·Ñ³¤·¤Æ¤¤¤ë¤È¤ß¤Ê¤µ¤ì¤ë¡£
101 ¼«Æ°Åª¤Ë \fI\-x\fP ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤¿¤³¤È¤Ë¤Ê¤ë¡£
103 .I "\-\-max-args=max-args, \-n max-args"
104 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤¢¤¿¤êºÇÂç \fImax-args\fR ¸Ä¤Îʸ»úÎó¤¬ÍѤ¤¤é¤ì¤ë¡£
105 ¤â¤·¥µ¥¤¥º¤¬Ä¶²á¤·¤¿¾ì¹ç¤Ë¤Ï (\-s ¥ª¥×¥·¥ç¥ó¤Î¹à¤ò¸«¤è)¡¢
106 \fImax-args\fR °Ê²¼¤Îʸ»úÎó¤¬ÍѤ¤¤é¤ì¤ë¤³¤È¤Ë¤Ê¤ë¡£
107 ¤¿¤À¤·¤³¤ì¤Ï \-x ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¡¢
108 »ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï \fBxargs\fR ¼«¿È¤¬¼Â¹Ô¤ò½ªÎ»¤¹¤ë¡£
110 .I "\-\-interactive, \-p"
111 ¥³¥Þ¥ó¥É¥é¥¤¥óËè¤Ë¡¢¼Â¹Ô¤¹¤ë¤«¤É¤¦¤«¤ò¥æ¡¼¥¶¡¼¤Ë¤¿¤º¤Í¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤·¡¢
112 üËö¤«¤é°ì¹ÔÆɤ߹þ¤à¡£ÊÖÅú¤¬ `y' ¤Þ¤¿¤Ï `Y' ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤¿¾ì¹ç¤Î¤ß¡¢
113 ¤½¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤ò¼Â¹Ô¤¹¤ë¡£
114 ¼«Æ°Åª¤Ë \fI\-t\fR ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤¿¤³¤È¤Ë¤Ê¤ë¡£
116 .I "\-\-no-run-if-empty, \-r"
117 ɸ½àÆþÎϤ˶õ¹Ô¤·¤«´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Ê¤¤¡£
118 Ä̾ï¤ÏÆþÎϤ¬¤Ê¤¤¾ì¹ç¤Ç¤â¥³¥Þ¥ó¥É¤Ï°ì²ó¼Â¹Ô¤µ¤ì¤ë¡£
120 .I "\-\-max-chars=max-chars, \-s max-chars"
121 ¥³¥Þ¥ó¥É¥é¥¤¥óÅö¤¿¤ê¤Ë»ØÄê¤Ç¤¤ëºÇÂç¤Îʸ»ú¿ô¤ò
122 \fImax-chars\fR ¤ËÀßÄꤹ¤ë¡£
123 ʸ»ú¿ô¤Ë¤Ï¥³¥Þ¥ó¥É¤È \fIinitial arguments\fR¡¢
124 ¥³¥Þ¥ó¥É¥é¥¤¥óʸ»úÎó¤ÎºÇ¸å¤ò¼¨¤¹¥Ì¥ëʸ»ú¤â´Þ¤Þ¤ì¤ë¡£
125 ¥Ç¥Õ¥©¥ë¥È¤Ï 20 x 1024 ʸ»ú¤â¤·¤¯¤Ï¥·¥¹¥Æ¥à¤Ç²Äǽ¤ÊºÇÂçÃÍ¡£
127 .I "\-\-verbose, \-t"
128 ¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤òɸ½à¥¨¥é¡¼½ÐÎϤËɽ¼¨¤¹¤ë¡£
132 ¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
135 ¥µ¥¤¥º¤¬Ä¶²á¤·¤¿¾ì¹ç (\fI\-s\fR ¥ª¥×¥·¥ç¥ó¤Î¹à¤ò¸«¤è) ½ªÎ»¤¹¤ë¡£
137 .I "\-\-max-procs=max-procs, \-P max-procs"
138 °ì»þ¤Ë¼Â¹Ô¤¹¤ë¥×¥í¥»¥¹¤ÎºÇÂç¿ô¤ò \fImax-procs\fR ¤ËÀßÄꤹ¤ë¡£
140 ¤â¤· \fImax-procs\fR ¤¬ 0 ¤Î¾ì¹ç¤Ï¡¢
141 \fBxargs\fR ¤Ï²Äǽ¤Ê¸Â¤ê¿¤¯¤Î¥×¥í¥»¥¹¤ò¼Â¹Ô¤·¤è¤¦¤È¤¹¤ë¡£
142 \fI\-n\fR ¥ª¥×¥·¥ç¥ó¤Ï \fI\-P\fR ¤È¤¤¤Ã¤·¤ç¤ËÍѤ¤¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¡£
143 ¤µ¤â¤Ê¤¤¤È°ì²ó¤Î¼Â¹Ô¤·¤«¹Ô¤ï¤ì¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¡£
151 (on-line in Info, or printed)