diff options
Diffstat (limited to 'ja/man/man1/apply.1')
-rw-r--r-- | ja/man/man1/apply.1 | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/ja/man/man1/apply.1 b/ja/man/man1/apply.1 deleted file mode 100644 index b3bacd0959..0000000000 --- a/ja/man/man1/apply.1 +++ /dev/null @@ -1,136 +0,0 @@ -.\" Copyright (c) 1983, 1990, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" 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. -.\" -.\" @(#)apply.1 8.2 (Berkeley) 4/4/94 -.\" jpman %Id: apply.1,v 1.2 1997/03/26 12:22:42 horikawa Stab % -.\" -.Dd April 4, 1994 -.Dt APPLY 1 -.Os BSD 4.2 -.Sh 名称 -.Nm apply -.Nd 引数の集合にコマンドを適用する -.Sh 書式 -.Nm apply -.Op Fl a Ns Ar c -.Op Fl Ns Ar # -.Ar command argument ... -.Sh 解説 -.Nm apply -は、 -指定されたコマンド -.Ar command -に、各引数 -.Ar argument -を順番に与えて実行します。 -.Pp -.Ar command -内に -.Dq Li \&%d -の形をした文字列があった場合には (ここで -.Dq Li d -は 1 から 9 までの数字)、これらは未使用の引数 -.Ar argument -のうちの -.Li d -番目のものと置き換えられます。 -このとき -.Ar command -の実行ごとに最大の -.Dq Li d -の数だけ引数は捨てられます。 -.Pp -オプションは以下のものがあります: -.Bl -tag -width "-ac" -.It Fl Ns Ar # -通常は引数は一つしか渡されません。オプション -.Fl # -で -.Ar command -に渡される引数の個数を指定できます。 -この数値が 0 のときは、引数なしで -.Ar command -が引数 -.Ar argument -につき 1 回、実行されます。 -.Pp -もしコマンド内に -.Dq Li \&%d -があった場合、 -.Fl # -オプションは無視されます。 -.It Fl a Ns Ar c -デフォルトではマジックキャラクタとして -.Dq Li % -を使っていますが、これは -.Fl a -オプションで変更ができます。 -.El -.Sh 環境変数 -以下の環境変数が -.Nm apply -の実行に影響します: -.Bl -tag -width SHELL -.It Ev SHELL -利用する shell のパス名です。 -この変数が定義されていない場合は Bourne shell が使われます。 -.El -.Sh 使用例 -.Bl -tag -width apply -compact -.It Li "apply echo a*" -ls(1) に似た出力になります。 -.It Li "apply \-2 cmp a1 b1 a2 b2 a3 b3" -`a' のファイルと `b' のファイルを比較します。 -.It Li "apply \-0 who 1 2 3 4 5" -who(1) を 5 回実行します。 -.It Li "apply \'ln %1 /usr/joe\'" * -カレントディレクトリ内の全てのファイルをディレクトリ -.Pa /usr/joe -にリンクします。 -.El -.Sh 関連ファイル -.Bl -tag -width /bin/sh -compact -.It Pa /bin/sh -デフォルトの shell です。 -.El -.Sh 作者 -Rob Pike -.Sh バグ -.Ar command -内に shell のメタキャラクタを使用すると、異常な動作をするかもしれません。 -複雑なコマンドはシングルクォート -.Pq Sq -で括るのがベストです。 -.Sh 歴史 -.Nm -コマンドは -.Bx 4.2 -から登場しました。 |