摘要: 摘自:http://hi.baidu.com/2enjoy/blog/item/5e0e335a6e22f4cd9c8204e5.htmlshell函数返回值的方法从shell函数中返回的数值的方法不多,有本书书里说只有写入文件或者全局变量。(Theonlywaytoreturnavaluetothecallingprogramistowriteittoafile(orstandardoutput)andhavethecallingprogramread(orassign)thevaluebackintoavariable.)本文总结了即总方法:1.echo法,2.全局变量法,并给出了实例。其 阅读全文
posted @ 2012-02-23 10:26 kkk3044147 阅读(2404) 评论(0) 推荐(0)