[root@localhost ~]# ./b.sh a 1 b 2 c 3 [root@localhost ~]# less b.sh #!/bin/sh exec < b zcc() { echo $1 echo $2 } while read line do zcc $line done [root@localhost ~]# less b a 1 b 2 c 3
本文转自 freeterman 51CTO博客,原文链接:http://blog.51cto.com/myunix/1332342,如需转载请自行联系原作者