echo 命令
echo - display a line of text
SYNOPSIS
echo [SHORT-OPTION]... [STRING]...
DESCRIPTION
Echo the STRING(s) to standard output.
-n do not output the trailing newline
-e enable interpretation of backslash escapes
-E disable interpretation of backslash escapes (default)
\\ backslash 反斜线
\a alert (BEL) 发出警告声
\b backspace 删除前一个字符
\c produce no further output 不输出后面的内容
\e escape 跳过后面一个字符输出
\f form feed 下移后面内容相同位置输出
\n new line 换行且光标移至行首
\t horizontal tab 插入tab
\v 同\f
示例:
echo -n string
![](https://img2018.cnblogs.com/blog/1279026/201908/1279026-20190820224312532-178462584.png)
echo -e string //处理特殊字符
赠人玫瑰,手有余香,如果我的文章有幸能够帮到你,麻烦帮忙点下右下角的推荐,谢谢!
作者: imcati
出处: https://www.cnblogs.com/imcati/>
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出, 原文链接