OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / draft / man1 / printf.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) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU printf 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 & Modified Sat Jan 24 16:08:24 JST 2004
18 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
19 .\" 
20 .TH printf 1 "18 June 2002" "GNU Shell Utilities 2.1"
21 .\"O .SH NAME
22 .\"O printf \- format and print data
23 .SH Ì¾Á°
24 printf \- ¥Ç¡¼¥¿¤òÀ°·Á¤·¤Æɽ¼¨¤¹¤ë
25 .\"O .SH SYNOPSIS
26 .SH ½ñ¼°
27 .BI printf " format " [ argument... ]
28 .sp
29 .B printf [\-\-help] [\-\-version]
30 .\"O .SH DESCRIPTION
31 .SH ÀâÌÀ
32 .\"O .B printf
33 .\"O prints the
34 .\"O .I format
35 .\"O string, interpreting `%' directives and `\e' escapes in the same way
36 .\"O as the C 
37 .\"O .BR printf (3)
38 .\"O function.  The
39 .\"O .I format
40 .\"O argument is re-used as many times as necessary to convert all of the
41 .\"O given 
42 .\"O .IR argument s.
43 .B printf
44 ¤Ïʸ»úÎó
45 .I format
46 ¤òɽ¼¨¤¹¤ë¡£¤½¤ÎºÝ `%' ¤Ï½ñ¼°»ØÄê»Ò¤È¤·¤Æ¡¢
47 ¤Þ¤¿ `\e' ¤Ï¥¨¥¹¥±¡¼¥×ʸ»ú¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
48 ²ò¼á¤Î¤·¤«¤¿¤Ï C ¤Î
49 .BR printf (3)
50 ´Ø¿ô¤ÈƱ¤¸¤Ç¤¢¤ë¡£
51 °ú¤­¿ô
52 .I format
53 ¤ÏÍ¿¤¨¤é¤ì¤¿
54 .I argument
55 ¤¹¤Ù¤Æ¤ò¥³¥ó¥Ð¡¼¥È¤¹¤ë¤Î¤ËɬÍפʲó¿ôʬºÆÍøÍѤµ¤ì¤ë¡£
56 .P
57 .\"O .B printf
58 .\"O recognizes the following escapes to specify the number of the charcter to
59 .\"O print
60 .B printf
61 ¤Ïɽ¼¨¤¹¤ëʸ»ú¤ÎÈÖ¹æ¤ò»ØÄꤹ¤ë¤¿¤á¤Ë¡¢°Ê²¼¤Î¥¨¥¹¥±¡¼¥×¤òǧ¼±¤¹¤ë¡£
62 .IP \e0ooo
63 .\"O Octal number (`ooo' is 0 to 3 digits)
64 8 ¿Ê¿ô (`ooo' ¤ÎÉôʬ¤Ï 0 ·å¤«¤é 3 ·å¤Þ¤Ç)
65 .IP \exhhh
66 .\"O Hexadecimal number (`hhh' is 1 to 3 digits) 
67 16 ¿Ê¿ô (`hhh' ¤ÎÉôʬ¤Ï 1 ·å¤«¤é 3 ·å¤Þ¤Ç)
68 .IP \euNNNN 
69 .\"O Unicode 16-bit code
70 Unicode 16 ¥Ó¥Ã¥È¥³¡¼¥É
71 .IP \eUNNNNNNNN
72 .\"O Unicode 32-bit code
73 Unicode 32 ¥Ó¥Ã¥È¥³¡¼¥É
74 .PP
75 .\"O Unicode is printed according to the LC_CTYPE environment variable, and
76 .\"O requires \fBiconv\fR.
77 Unicode ¤Ï´Ä¶­ÊÑ¿ô LC_CTYPE ¤Ë´ð¤Å¤¤¤Æɽ¼¨¤µ¤ì¡¢\fBiconv\fR ¤òɬÍפȤ¹¤ë¡£
78 .\"O \fBprintf\fR It has an additional escape, `\ec', which causes
79 .\"O it to produce no further output, and an additional directive, `%b',
80 .\"O which prints its argument string with `\e' escapes interpreted the way
81 .\"O they are in the
82 .\"O .I format
83 .\"O string.
84 .B printf
85 ¤Ë¤Ï `\ec' ¤È¤¤¤¦¥¨¥¹¥±¡¼¥×¤¬Äɲ䵤ì¤Æ¤ª¤ê¡¢
86 ɽ¼¨¤ò¤½¤Î°ÌÃÖ¤ÇÄä»ß¤µ¤»¤ë¡£¤Þ¤¿ `%b' ¤È¤¤¤¦½ñ¼°»ØÄê»Ò¤¬Äɲ䵤ì¤Æ¤¤¤ë¡£
87 ¤³¤ì¤Ï°ú¤­¿ô¤Ç»ØÄꤵ¤ì¤¿Ê¸»úÎóÃæ¤Î `\e' ¤ò
88 .I format
89 ÆâÉô¤Ç»ØÄꤵ¤ì¤¿ `\e' ¤ÈƱ¤¸¤è¤¦¤Ë¼è¤ê°·¤¦¡£
90 .\"O .SH OPTIONS
91 .SH ¥ª¥×¥·¥ç¥ó
92 .\"O When GNU
93 .\"O .B printf
94 .\"O is invoked with exactly one argument, the following options are recognized:
95 GNU
96 .B printf
97 ¤¬°ú¤­¿ô 1 ¤Ä¤À¤±¤Çµ¯Æ°¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
98 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ç§¼±¤µ¤ì¤ë:
99 .TP
100 .B "\-\-help"
101 .\"O Print a usage message on standard output and exit successfully.
102 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
103 .TP
104 .B "\-\-version"
105 .\"O Print version information on standard output then exit successfully.
106 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
107 .\"O .SH NOTES
108 .SH Ãí°Õ
109 .\"O Report bugs to bug-sh-utils@gnu.org.
110 .\"O Page updated by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
111 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-sh-utils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
112 ¥Ú¡¼¥¸¤Î¹¹¿·¤Ï Ragnar Hojland Espinosa
113 <ragnar@ragnar-hojland.com> ¤¬¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£