bash echo去回车和翻译转义字符

1、去掉回车

$ echo -n "Enter your name:"    //echo命令
Enter your name:_               //提示输入

2、转义

$ echo -e "Enter your name:\c"  //echo命令
Enter your name:_               //提示输入

其中,字符'_'表示光标

posted on 2012-06-24 12:37  lianshisxq  阅读(190)  评论(0编辑  收藏  举报

导航