文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>shell之echo的输出

shell之echo的输出

时间:2010-06-28  来源:9ding

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选项才能是转义符生效
 
相关阅读 更多 +
排行榜 更多 +
萌趣贪吃蛇

萌趣贪吃蛇

休闲益智 下载
粘液快跑

粘液快跑

休闲益智 下载
一个不能跑

一个不能跑

休闲益智 下载