diff options
Diffstat (limited to 'ja_JP.eucJP/man/man1/xargs.1')
-rw-r--r-- | ja_JP.eucJP/man/man1/xargs.1 | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/ja_JP.eucJP/man/man1/xargs.1 b/ja_JP.eucJP/man/man1/xargs.1 new file mode 100644 index 0000000000..c6590b7609 --- /dev/null +++ b/ja_JP.eucJP/man/man1/xargs.1 @@ -0,0 +1,159 @@ +.\" Copyright (c) 1990, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This code is derived from software contributed to Berkeley by +.\" John B. Roll Jr. and the Institute of Electrical and Electronics +.\" Engineers, Inc. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" @(#)xargs.1 8.1 (Berkeley) 6/6/93 +.\" jpman %Id: xargs.1,v 1.3 1997/06/12 18:15:08 kubo Stab % +.\" +.Dd June 6, 1993 +.Dt XARGS 1 +.Os +.Sh 名称 +.Nm xargs +.Nd "標準入力から引数を読み、コマンドを実行する" +.Sh 書式 +.Nm xargs +.Op Fl 0 +.Op Fl t +.Oo Op Fl x +.Fl n Ar number +.Oc +.Op Fl s Ar size +.Op Ar utility Op Ar arguments ... +.Sh 解説 +.Nm +コマンドは空白、タブ、改行、EOF (end-of-file) で区切られた引数を標準入力 +から読み込み、指定した +.Ar utility +にその引数をつけて実行します。 +.Pp +コマンドラインで指定されたユーティリティ名と引数は、 +.Ar utility +コマンドに渡されます。 +ユーティリティに続く引数は標準入力から得られます。 +.Ar utility +は標準入力を読み切るまで繰り返し実行されます。 +.Pp +空白、タブ、改行はシングルクオート +(``\ '\ '') +.Ek +やダブルクオート (``"'') やバックスラッシュ (``\e'') +を使って埋め込むことができます。 +シングルクオートは次のシングルクオートにマッチするまで、 +改行とシングルクオートを除く全ての文字をエスケープします。 +ダブルクオートは次のダブルクオートにマッチするまで +改行とダブルクオートを除く全ての文字をエスケープします。 +改行を含む全ての文字はバックスラッシュでエスケープされます。 +.Pp +オプションは以下のものがあります: +.Bl -tag -width indent +.It Fl 0 +空白と改行ではなくヌル文字 (``\\0'') を区切りとするように +.Nm +に指示します。 +.Nm find +の +.Fl print0 +とともに用います。 +.It Fl n Ar number +各 +.Ar utility +実行時に標準入力から拾う引数の最大数を設定します。 +もし計算されたバイト数が、指定された +.Ar size +を越えた場合 ( +.Fl s +オプション参照) や +.Ar utility +の最後の実行時に残った引数が +.Ar number +個以下の場合、 +.Ar utility +は、標準入力から読み込んだ引数のうち +.Ar number +より少数しか使いません。 +.Ar number +の現在のデフォルト値は 5000 です。 +.It Fl s Ar size +.Ar utility +に渡すコマンドラインの最大バイト数をセットします。 +.Ar utility +名の長さと +.Ar utility +に渡される引数の長さの和 (終端の +.Dv NULL +も含む) がこの値以下になります。 +.Ar size +の現在のデフォルト値は +.Dv ARG_MAX +- 2048 です。 +.It Fl t +実行されるコマンドをその実行の直前に標準エラー出力にエコーします。 +.It Fl x +引数の個数が指定した (もしくはデフォルトの) コマンドライン長と +合わない場合、 +.Nm +を強制終了します。 +.El +.Pp +もし +.Ar utility +が指定されていなければ、 +.Xr echo 1 +が使われます。 +.Pp +.Ar utility +が標準入力を読むプログラムの場合は予期せぬ動作をするかもしれません。 +.Pp +コマンドラインを集められなかったときや +.Ar utility +を起動できなかったとき、ユーティリティがシグナルで終了したとき、もしく +はユーティリティが戻り値 255 で終了したときは、 +.Nm +は (それ以上の読み込みはせずに) ただちに終了します。 +.Pp +.Sh 戻り値 +.Nm +は、何もエラーが起こらなければ、戻り値 0 で終了します。 +.Ar utility +が起動できなかった場合は 、 +戻り値 127 で終了します。その他のエラーでは戻り値 1 で終了します。 +.Sh 関連項目 +.Xr echo 1 , +.Xr find 1 +.Sh 規格 +.Nm +ユーティリティは +.St -p1003.2 +互換です。 |