linux-echo

linux-echo

echo "hello"

echo -n "hello" # 这种会去掉换行

sh 不支持这个 -n 参数,很奇怪

使用 -n 参数 zsh 后面会跟着一个百分号

Printf puts a percent sign after everything it prints

This is zsh's way of telling you that the preceding command outputted a partial line and the shell terminated that line to give you a prompt on a new line.


本文总阅读量