Linux命令详解之echo
- 如果在echo中,有引号或者是双引号,则需要使用双引号或者引号括起来。
例如:
-
echo "Let's see if this'll work"
; -
echo 'She says:"she loves me!"'
; -
echo "Let's see if this'll work"
; echo 'She says:"she loves me!" '
2.参数详解
-
-n
参数
-n do not output the trailing newline
表示不输出行内容的换行符,示例如下
[root@server4 shells]# echo linux
linux
[root@server4 shells]# echo -n linux
linux[root@server4 shells]#