PRINTF(1) | 用户命令 | PRINTF(1) |
printf - 格式化并显示数据
printf
格式[参数列表]...
printf 选项
按照指定格式打印参数列表中的参数或按照选项执行:
格式以 C printf 的方式控制输出。转义序列如下:
并且所有 C 格式规范的转义将由 diouxXfeEgGcs 中的某个字符作为结束,且“参数列表”将被首先转换为适当的格式。变量宽度声明也会被处理。
注意:您的 shell 可能内置了自己的 printf 程序版本,它通常会覆盖这里所提及的相应版本。请查阅您的 shell 文档获知它所支持的选项。
由 David MacKenzie 编写。
GNU coreutils 的在线帮助:
<https://www.gnu.org/software/coreutils/>
请向 <https://translationproject.org/team/zh_CN.html>
报告翻译错误。
Copyright © 2022 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
printf(3)
完整文档请见:
<https://www.gnu.org/software/coreutils/printf>
或者在本地使用: info
'(coreutils) printf invocation'
本页面中文版由中文
man 手册页计划提供。
中文 man
手册页计划:https://github.com/man-pages-zh/manpages-zh
2022年9月 | GNU coreutils 9.1 |