按格式输出文本
printf 是「Shell 与环境」分类下的常用命令,作用是:按格式输出文本。
printf
典型用法如下:printf "%s\n" "hello"。你可以查看本页上方同组的相关命令,或直接复制到终端运行。
printf "%s\n" "hello"