摘要:        
shell脚本也可以包含文件 格式: . filename 或者source filename 举例: a.sh #!/bin/sh calla() { echo "a.sh is called" } b.sh #!/bin/sh . ./a.sh echo "exec b.sh calla chm    阅读全文
posted @ 2016-02-28 13:21
努力,奋斗
阅读(142)
评论(0)
推荐(0)
        
            
        
        
摘要:        
shell 函数的定义和普通的c语言函数定义差不多 function(){ } shell 函数的返回值,可以显示的return 语句,如果没有return 那么就会把最后一条语句的执行结果作为返回值 shell 函数的返回值只能是整数 例子: hello () { echo "you select    阅读全文
posted @ 2016-02-28 00:11
努力,奋斗
阅读(172)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号