2011年9月7日 星期三

Linux script : echo -e

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)
\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
reference :http://bash.cyberciti.biz/guide/Quoting

沒有留言:

張貼留言