echo -e "My name is \t test"
You will see the My name is test-e: enable backslash ascapes
The backslash-escaped characters
\a alert (bell)reference :http://bash.cyberciti.biz/guide/Quoting
\b backspace
\e an escape character
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\' single quote
\nnn the eight-bit character whose value is the octal value nnn (one to three digits)
\xHH the eight-bit character whose value is the hexadecimal value HH (one or two hex digits)
\cx a control-x character
沒有留言:
張貼留言