echo \c 不换行
\n 换行
\t 跳格
\f 进纸
1、echo -e "what's your name:\n"
2、echo -e "\007your home directory is $HOME,you are connected on 'tty'"
3、
#!/bin/bash
#var_test
echo "First Name :\c"
read name
echo "Middle Name :\c"
read middle
echo "Last Name :\c"
read surname
4、echo -e "here is a tab\there are two tabs\t\tok"
使用-e选项才能是转义符生效
阅读(6888) | 评论(0) | 转发(0) |