摘要: 1. 管道输出到read命令中, 使用管道echo输出来设置变量将会失败.然而, 使用管道cat输出看起来能够正常运行. cat file1 file2 |while read line2 .while被放置在子shell中。1 #!/bin/sh2 # readpipe.sh3 # Bjon E... 阅读全文
posted @ 2014-09-01 11:13 赵翔 阅读(375) 评论(0) 推荐(0) 编辑