linux基础之echo
echo
If -e is in effect, the following sequences are recognized:
\ backslash
a alert (BEL)
b backspace
c produce no further output
e escape
f form feed
n new line
r carriage return
t horizontal tab
v vertical tab
echo -e "linuxea.com nwww.linuxea.com"[root@zabbix_agentd ~]# echo -e "linuxea.com nwww.linuxea.com"linuxea.com www.linuxea.com[root@zabbix_agentd ~]#
[root@zabbix_agentd ~]# echo -e "linuxea.com nwww.linuxea.com"linuxea.com www.linuxea.com-t制表符[root@zabbix_agentd ~]# echo -e "linuxea.com twww.linuxea.com"linuxea.com www.linuxea.com垂直制表符-v[root@zabbix_agentd ~]# echo -e "linuxea.com vwww.linuxea.com"linuxea.com
www.linuxea.com
b删除前一个字符[root@zabbix_agentd ~]# echo -e "linuxea.com bwww.linuxea.com"linuxea.comwww.linuxea.com[root@zabbix_agentd ~]# echo -e "linuxea.com awww.linuxea.com"linuxea.com www.linuxea.com[root@zabbix_agentd ~]# echo -e "linuxea.com www.linuxea.com"
多种颜色[root@zabbix_agentd ~]# echo -e "
-n不自动换行[root@zabbix_agentd ~]# echo -ne "
shell中的引用‘’:强引用,变量替换不会进行“”:弱引用,能够执行变量替换``:命令替换,引用命令的执行结echo date +%F-%T