print

Z Shell (zsh) 内置。打印参数,类似于 echo。 另请参阅:echoprintfzsh。 更多信息:https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html.

print "文本1" "文本2"

print -l "第一行" "第二行" "第三行"

print -n "文本"; print "文本2"

print -e "第一行\n第二行"

print -f "%s 今年 %d 岁了。\n" "小明" 30