本文为本人在阅读《鸟哥私房菜》,阅读之余、思考之余,动手实践操作
sh01.sh > hello world!
1 |
|
sh02.sh > read
1 |
|
sh03.sh
1 |
|
sh04.sh > cross two numbers
1 |
|
sh05.sh > check file
1 |
|
sh06.sh > if
1 |
|
sh06-2.sh
1 | # 使用if [...];then fi |
sh06-3.sh
1 | # 使用if elif elif ... else fi |
sh07.sh > script name and parameters
1 |
|
sh08.sh > if and case
1 |
|
sh08-2.sh
1 |
|
sh08-3.sh
1 |
|
sh10.sh > calculate date
1 |
|
sh11.sh > function
1 |
|
sh12.sh > loop
1 |
|
sh12-2.sh Using “until”
1 |
|
sh12-3.sh Calculate “1+2+3+…+100”
1 |
|
sh12-4.sh
1 |
|
sh12-5.sh
1 |
|
sh12-6.sh
1 |
|
sh12-7.sh
1 |
|