Available in

(1) (1)/cs (1)/de (1)/es (1)/fr (1)/hu (1)/it (1)/ja (1)/ko (1)/pl (1)/tr (1)/zh_CN (1)/zh_TW (1posix) (3) (3)/de (3)/es (3)/fr (3)/ja (3)/nl (3c) (3o) (3posix) (3ucb) (9) (9freebsd)

TOC

printf(1)                                                            printf(1)



printf -

printf format [argument...]

       printf [--help] [--version]

printf

       format
        `%'
        `\'
        C printf(3)


       format

       argument


       printf


       \0ooo  8  (`ooo'  0  3 )

       \xhhh  16  (`hhh'  1  3 )

       \uNNNN Unicode 16

       \UNNNNNNNN
              Unicode 32

       Unicode  LC_CTYPE iconv printf
        `\c'
        `%b'
        `\' format
        `\'

GNU

       printf
        1 :

       --help

       --version


 bug-sh-utils [AT] gnu.org
        Ragnar Hojland Espinosa <ragnar [AT] ragnar-hojland.com>



GNU Shell Utilities 2.1          18 June 2002                        printf(1)

COMMENTS

1
how can printf show this string "\n"  , i don't know!
2007-05-26 16:21:12
Jafar
2
para imprimir "\n" hay q usar caracteres de escape con la \ esta instruccion te lo va a iprimor
printf("\\n");
2007-06-16 22:36:23
gisela
3
alguien sabe como puedo imprimir una cadena centrada entre tantos caracteres??
2007-06-16 22:37:21
gisela
Add your comment here. Whitespace and linebreaks are preserved. URLs are linked automatically.
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.