学习好shell编程是颇有用的,能够使用shell脚本轻巧地完成有趣的工做。html
本文地址:http://www.cnblogs.com/yhLinux/p/4047516.htmllinux
1. Bash实例,做者:Daniel Robbins (drobbins@gentoo.org), 总裁兼 CEO, Gentoo Technologies, Inc.shell
此文共分三个部分,从介绍简单的系统变量开始,一步步讲解bash编程的基本要点,很是适合想短时间入门的读者。编程
第一部分:http://www.ibm.com/developerworks/linux/library/l-bash/index.htmlbash
中文:http://www.ibm.com/developerworks/cn/linux/shell/bash/bash-1/学习
第二部分:http://www.ibm.com/developerworks/linux/library/l-bash2/index.htmlhtm
中文:http://www.ibm.com/developerworks/cn/linux/shell/bash/bash-2/blog
第三部分:http://www.ibm.com/developerworks/library/l-bash3/index.html教程
中文:http://www.ibm.com/developerworks/cn/linux/shell/bash/bash-3/get
参考资料:
此文到第一第二部分主要介绍了bash编程的基本用法,使用容易上手的示例程序讲解了条件,循环,选择语句,到第三部分,经过分析一个脚本程序的构建过程,展现了如何由浅至深地编写一个比较完整的shell脚本。
2. Bash脚本15分钟进阶教程:http://developer.51cto.com/art/201404/436498.htm