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
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.
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
11 .\" GNU printf man page
12 .\" man pages are NOT obsolete!
13 .\" <ragnar@ragnar-hojland.com>
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>
20 .TH printf 1 "18 June 2002" "GNU Shell Utilities 2.1"
22 .\"O printf \- format and print data
24 printf \- ¥Ç¡¼¥¿¤òÀ°·Á¤·¤Æɽ¼¨¤¹¤ë
27 .BI printf " format " [ argument... ]
29 .B printf [\-\-help] [\-\-version]
35 .\"O string, interpreting `%' directives and `\e' escapes in the same way
40 .\"O argument is re-used as many times as necessary to convert all of the
46 ¤òɽ¼¨¤¹¤ë¡£¤½¤ÎºÝ `%' ¤Ï½ñ¼°»ØÄê»Ò¤È¤·¤Æ¡¢
47 ¤Þ¤¿ `\e' ¤Ï¥¨¥¹¥±¡¼¥×ʸ»ú¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
55 ¤¹¤Ù¤Æ¤ò¥³¥ó¥Ð¡¼¥È¤¹¤ë¤Î¤ËɬÍפʲó¿ôʬºÆÍøÍѤµ¤ì¤ë¡£
58 .\"O recognizes the following escapes to specify the number of the charcter to
61 ¤Ïɽ¼¨¤¹¤ëʸ»ú¤ÎÈÖ¹æ¤ò»ØÄꤹ¤ë¤¿¤á¤Ë¡¢°Ê²¼¤Î¥¨¥¹¥±¡¼¥×¤òǧ¼±¤¹¤ë¡£
63 .\"O Octal number (`ooo' is 0 to 3 digits)
64 8 ¿Ê¿ô (`ooo' ¤ÎÉôʬ¤Ï 0 ·å¤«¤é 3 ·å¤Þ¤Ç)
66 .\"O Hexadecimal number (`hhh' is 1 to 3 digits)
67 16 ¿Ê¿ô (`hhh' ¤ÎÉôʬ¤Ï 1 ·å¤«¤é 3 ·å¤Þ¤Ç)
69 .\"O Unicode 16-bit code
70 Unicode 16 ¥Ó¥Ã¥È¥³¡¼¥É
72 .\"O Unicode 32-bit code
73 Unicode 32 ¥Ó¥Ã¥È¥³¡¼¥É
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
85 ¤Ë¤Ï `\ec' ¤È¤¤¤¦¥¨¥¹¥±¡¼¥×¤¬Äɲ䵤ì¤Æ¤ª¤ê¡¢
86 ɽ¼¨¤ò¤½¤Î°ÌÃÖ¤ÇÄä»ß¤µ¤»¤ë¡£¤Þ¤¿ `%b' ¤È¤¤¤¦½ñ¼°»ØÄê»Ò¤¬Äɲ䵤ì¤Æ¤¤¤ë¡£
87 ¤³¤ì¤Ï°ú¤¿ô¤Ç»ØÄꤵ¤ì¤¿Ê¸»úÎóÃæ¤Î `\e' ¤ò
89 ÆâÉô¤Ç»ØÄꤵ¤ì¤¿ `\e' ¤ÈƱ¤¸¤è¤¦¤Ë¼è¤ê°·¤¦¡£
94 .\"O is invoked with exactly one argument, the following options are recognized:
97 ¤¬°ú¤¿ô 1 ¤Ä¤À¤±¤Çµ¯Æ°¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
98 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ç§¼±¤µ¤ì¤ë:
101 .\"O Print a usage message on standard output and exit successfully.
102 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
105 .\"O Print version information on standard output then exit successfully.
106 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
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> ¤¬¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£