[转]bash脚本调试方法_奇奇_新浪博客
Bash 初始化文件 观察 Shell 怎么执行命令 察看一些简单的脚本 1.1.普通 shell 程序 1.1.1. ... shell 命令例如 touch file1 file2 file3 由命令本身,参数以及空格构成. 更复杂的 shell 命令...
bash循环、函数、数组、内置的字符串处理、变量、trap信号捕捉 - 推酷
/bin/bash # func1 hello() { echo "Hello there today's date is `date +%F`" } echo "now ... –f function_name 查看:export -f 或declare -xf 函数参数 函数可以接受参数: 传递参数给... 还可以使用$@或$*引用所有参数, $#引用传递的参数的个数; 位置参数 script $1 此$1...