本文介绍了Linux中ECHO命令的-n选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-n
标志与 echo
命令一起使用的用途是什么Linux?
What is the use for the -n
flag with the echo
command in Linux?
echo -n
推荐答案
man echo
-n Do not print the trailing newline character. This may also be achieved by appending `\c' to the end of the string, as is done
by iBCS2 compatible systems. Note that this option as well as the effect of `\c' are implementation-defined in IEEE Std
1003.1-2001 (``POSIX.1'') as amended by Cor. 1-2002. Applications aiming for maximum portability are strongly encouraged to
use printf(1) to suppress the newline character.
许多到Linux的内置命令都有一个man
页面(例如man ls
),这是查看man
ual的好方法,而无需在线搜索.
Many built-in commands to Linux have a man
page (e.g. man ls
), which is a great way to look at the man
ual without having to search online.
这篇关于Linux中ECHO命令的-n选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!