printf

PRINTF(1)                   General Commands Manual                  PRINTF(1)



åå
       printf - ãã¼ã¿ããã©ã¼ããããã¦è¡¨ç¤ºãã

æ¸å¼
       printf format [argument...]
       printf {--help,--version}

説æ
       ãã®ææ¸ã¯ããã¡ã³ããã³ã¹ããã¦ããªãã®ã§ãä¸æ£ç¢ºã»ä¸å®å¨ ãªå¯è½æ§ããããç¾å¨ã¯
       texinfo ææ¸ãæ£å¼ãªæå ±ã¨ãªã£ã¦ããã

       ãã®ããã¥ã¢ã«ãã¼ã¸ã¯ GNU ç printf ã«ã¤ãã¦è¨è¿°ãããã®ã§ããã printf ã¯æåå
       format ã表示ããããã®é `%' ã¯æ¸å¼æå®åã¨ãã¦ãã¾ã `\' ã¯ã¨ã¹ã±ã¼ãæå
       ã¨ãã¦è§£éãããã解éã®ãããã㯠C ã® `printf' é¢æ°ã¨åãã å¼ãæ° format
       ã¯ä¸ããããå¼ãæ°ãã¹ã¦ãã³ã³ãã¼ãããã®ã«å¿è¦ãªåæ°ååå©ç¨ãããã

       printf 㯠`\0ooo' ããã£ã©ã¯ã¿ãæå®ãã 8 é²æ°ã¨ãã¦åãæ±ãï¼`ooo' 㯠0 ã ã 3
       æ¡ï¼ãã¾ã `\xhhh' ãåãããã£ã©ã¯ã¿ãæå®ãã 16 é²æ°ï¼`hhh' 㯠1 ãã 3
       æ¡ï¼ã¨ãã¦åãæ±ãã printf ã«ã¯ `\c' ã¨ããã¨ã¹ã±ã¼ãã追å ããã¦ããããã㯠printf
       ã«è¡¨ç¤ºãåæ¢ããããã¾ã `%b' ã¨ããæ¸å¼æå®åã追å ããã¦ããã ããã¯å¼ãæ°ã§æå®ãããæå‐
       åä¸ã® `\' ã format åé¨ã§æå®ããã `\' ã¨åãããã«åãæ±ãã

   ãªãã·ã§ã³
       GNU ç printf ãå¼ãæ°ã²ã¨ã¤ã§å®è¡ãããå ´åã«ã¯ã以ä¸ã®ãªãã·ã§ã³ãèªèãããã

       --help 使ãæ¹ã«é¢ããã¡ãã»ã¼ã¸ãæ¨æºåºåã«è¡¨ç¤ºããå®è¡æåãè¿ãã¦çµäºããã

       --version
              ãã¼ã¸ã§ã³æå ±ãæ¨æºåºåã«è¡¨ç¤ºããå®è¡æåãè¿ãã¦çµäºããã



FSF                           GNU Shell Utilities                    PRINTF(1)