恩,就这么开始了 首先说一下这个小小的插曲...写着写着,它就崩溃了,然后我也崩溃了...崩溃的我到处找一个不会让我崩溃的工具,然后找来找去就找到了scribefire. 1. 关于从Command Line取参数进来 ~ Shell Built in Variables ~ Meaning $# Number of command line arguments. $? Exit Status $* string that contains all arguments to shell $@ S
if语句 单分支 if [ 条件判断式 ]; then 程序 fi 或者 if [ 条件判断式 ] then 程序 fi 例子: 双分支 if [ 条件判断式 ] then 程序 else 程序 fi 多分支 if [ 条件判断1 ] then 程序1 elif [ 条件判断2 ] then 程序2 else 程序3 fi case语句 case $变量 in "值1" ) 程序1 ;; *) 默认程序 ;; esac for语句 语法1 for 变量 in 值1 值2 值3...