Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2448698
  • 博文数量: 540
  • 博客积分: 11289
  • 博客等级: 上将
  • 技术积分: 6160
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-11 20:27
个人简介

潜龙勿用,见龙在田

文章分类

全部博文(540)

文章存档

2018年(2)

2013年(5)

2012年(24)

2011年(104)

2010年(60)

2009年(217)

2008年(128)

分类:

2010-11-30 17:19:31

 
-u fd  Read input from file descriptor fd.
-u [ n ] 读取一位数的文件描述符号码 n 作为输入。文件描述符可以用 ksh exec 内置命令打开。n 的缺省值是 0,表示的是键盘。值 2 表示标准错误。
 
 
-s  Silent mode.  If input is coming from a terminal, characters are not echoed.
举例: read -s line < input_file
 
# read a b c
sldf sdf er2
[root@vm57-120 ~]# echo $a $b $c
sldf sdf er2
阅读(1686) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~