linux入门之echo

来源:互联网 发布:调度算法有哪些 编辑:程序博客网 时间:2024/06/15 11:15
NAME
       echo - display a line of text


SYNOPSIS
       echo [SHORT-OPTION]... [STRING]...
       echo LONG-OPTION


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)


       --help display this help and exit


       --version
              output version information and exit


       If -e is in effect, the following sequences are recognized:


       \0NNN  the character whose ASCII code is NNN (octal)


       \\     backslash


       \a     alert (BEL)


       \b     backspace


       \c     produce no further output


       \f     form feed


       \n     new line


       \r     carriage return


       \t     horizontal tab


       \v     vertical tab


-e 若字符串中出现以下字符,则特别加以处理,而不会将它当成一般
文字输出:
   \a 发出警告声;
   \b 删除前一个字符;
   \c 最后不加上换行符号;
   \f 换行但光标仍旧停留在原来的位置;
   \n 换行且光标移至行首;
   \r 光标移至行首,但不换行;
   \t 插入tab;
   \v 与\f相同;
   \\ 插入\字符;
   \nnn 插入nnn(八进制)所代表的ASCII字符;
0 0
原创粉丝点击