while exec读取多个变量

1150阅读 0评论2013-03-27 zhengsenlin888
分类:LINUX


点击(此处)折叠或打开

  1. #!/bin/bash
  2. exec 2
  3. while read srvname sfile <&2
  4. do
  5. echo "'${srvname}@${sfile}.xd.com',"
  6. done


上一篇:ssh安全配置
下一篇:Perl连接DBI