摘要: shell函数定义函数定义函数的格式function 函数名(){ 命令}在脚本中使用函数示例代码如下:hello(){echo "hello there today date is `date`"}在脚本中使用函数示例代码如下:#!/bin/sh#test20#在脚本中使用函数hello(){echo "Hello there today's data is `date`"}echo "now going to the function hello"helloecho "back from function&quo 阅读全文
posted @ 2013-01-04 20:34 retacn_yue 阅读(103) 评论(0) 推荐(0) 编辑