學習好shell編程是很有用的,可以使用shell腳本輕巧地完成有趣的工作。
本文地址:http://www.CUOXin.com/yhLinux/p/4047516.html
1. Bash實例,作者:Daniel Robbins (drobbins@gentoo.org), 總裁兼 CEO, Gentoo Technologies, Inc.
此文共分三個部分,從介紹簡單的系統變量開始,一步步講解bash編程的基本要點,非常適合想短期入門的讀者。
第一部分:http://www.ibm.com/developerworks/linux/library/l-bash/index.html
中文:http://www.ibm.com/developerworks/cn/linux/shell/bash/bash-1/
第二部分:http://www.ibm.com/developerworks/linux/library/l-bash2/index.html
中文:http://www.ibm.com/developerworks/cn/linux/shell/bash/bash-2/
第三部分:http://www.ibm.com/developerworks/library/l-bash3/index.html
中文:http://www.ibm.com/developerworks/cn/linux/shell/bash/bash-3/
參考資料:
此文到第一第二部分主要介紹了bash編程的基本用法,使用容易上手的示例程序講解了條件,循環,選擇語句,到第三部分,通過分析一個腳本程序的構建過程,展示了如何由淺至深地編寫一個比較完整的shell腳本。
2. Bash腳本15分鐘進階教程:http://developer.51cto.com/art/201404/436498.htm
新聞熱點
疑難解答