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
 

  echo -e  string //处理特殊字符

  

 

posted @ 2019-08-20 20:17  imcati  阅读(184)  评论(0编辑  收藏  举报