摘要:
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 阅读全文