Linux中的echo简介(自我总结)(44)

能在echo中输出的字符:(注意运行这些字符时都要加-e选项.)

Here are following escape sequences which can be used in echo command:

Escape Description
\\ backslash(反斜线)
\a alert (BEL)
\b backspace(退格键)
\c suppress trailing newline(强制换行)
\f form feed
\n new line(新行)
\r carriage return(回车)
\t horizontal tab(水平制表符)
\v vertical tab

举例:

           \\

            

            

            \a

                \b

            


            \c

            

            \f

            


            \n

            


            \r

            


            \t

            


            \v

            


                                                                                                                            Name:Xr

                                                                                                                            Date:2014-05-22 00:05

你可能感兴趣的:(Linux中的echo简介(自我总结)(44))