admin管理员组文章数量:1609902
你还在为不知道Linux echo的用法而不知所措么?Linux echo的用法你了解多少?下面来是学习啦小编为大家收集的Linux echo的用法,欢迎大家阅读:
Linux echo的用法
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)
不解释转义字符
--help display this help and exit
帮助
--version
output version information and exit
显示版本等信息
If -e is in effect, the following sequences are
recognized: 当用-e时特殊字符的效果如下
\\ 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
插入TAB
\v vertical tab
换行但光标仍停留在原来的位置
\0NNN byte with octal value NNN (1 to 3 digits)
八进制代表的ASCII字节
\xHH byte with hexadecimal value HH (1 to 2 dig-
its)
十六进制代表的ASCII字节
看了“Linux echo的用法”还想看:
版权声明:本文标题:linux echo -e参数,Linux echo的用法 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1728576559a1164539.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论