build
execute
bash filename [param]
or ./ file (but must before have the exe root as =>chmod u+x filename)
变量名=字符串
在程序中引用变量值时,要在变量名前面加上一个“$”符号
注意:在赋值号“=”的两边没有空格
array
[student@localhost andy]$ vi exam.sh
city[0]=Beijing
city[1]=Shanghai
city[2]=Tianjin
echo ${city[*]}
[student@localhost andy]$ vi exam.sh
[student@localhost andy]$ chmod 777 exam.sh
[student@localhost andy]$ ./exam.sh
Beijing Shanghai Tianjin