OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / GNU_sh-utils / release / man1 / printf.1
1 .\"    This file documents the GNU shell utilities.
2 .\" 
3 .\"    Copyright (C) 1994 Free Software Foundation, Inc.
4 .\" 
5 .\"    Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\" 
9 .\"    Permission is granted to copy and distribute modified versions of
10 .\" this manual under the conditions for verbatim copying, provided that
11 .\" the entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\" 
14 .\"    Permission is granted to copy and distribute translations of this
15 .\" manual into another language, under the above conditions for modified
16 .\" versions, except that this permission notice may be stated in a
17 .\" translation approved by the Foundation.
18 .\" 
19 .\" Japanese Version Copyright (c) 1997 NAKANO Takeo, all rights reserved.
20 .\" Translated Thu May 17 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
21 .\"
22 .TH PRINTF 1 "GNU Shell Utilities" "FSF" \" -*- nroff -*-
23 .SH 名前
24 printf \- データをフォーマットして表示する
25 .SH 書式
26 .B printf
27 format [argument...]
28 .br
29 .B printf
30 {\-\-help,\-\-version}
31 .SH 説明
32 この文書はもうメンテナンスされていないので、不正確・不完全
33 な可能性がある。現在は texinfo 文書が正式な情報となっている。
34 .PP
35 このマニュアルページは GNU 版
36 .BR printf
37 について記述したものである。
38 .B printf
39 は文字列
40 .I format
41 を表示する。その際 `%' は書式指定子として、また `\e' はエスケープ文字
42 として解釈される。解釈のされかたは C の `printf' 関数と同じ。
43 引き数
44 .I format
45 は与えられた引き数すべてをコンバートするのに必要な回数分再利用される。
46 .P
47 .B printf
48 は `\e0ooo' をキャラクタを指定する 8 進数として取り扱う(`ooo' は 0 か
49 ら 3 桁)。また `\exhhh' を同じくキャラクタを指定する 16 進数(`hhh' 
50 は 1 から 3 桁)として取り扱う。
51 .B printf
52 には `\ec' というエスケープが追加されている。これは
53 .B printf
54 に表示を停止させる。また `%b' という書式指定子が追加されている。
55 これは引き数で指定された文字列中の `\e' を
56 .I format
57 内部で指定された `\e' と同じように取り扱う。
58 .SS オプション
59 GNU 版
60 .B printf
61 が引き数ひとつで実行された場合には、以下のオプションが認識される。
62 .TP
63 .I "\-\-help"
64 使い方に関するメッセージを標準出力に表示し、実行成功を返して終了する。
65 .TP
66 .I "\-\-version"
67 バージョン情報を標準出力に表示し、実行成功を返して終了する。