“More info on exit codes: Advanced Bash-Scripting Guide”
Mendel Cooper 编写、收录在 TLDP 的 Bash 脚本长篇指南,既能当教程顺序读,也能当参考手册查。内容涵盖变量、引用、测试、循环、函数、进程替换、here document 等语法,并附有大量完整的示例脚本。它的特点是细节全、例子多,但条目偏多、编排不算紧凑,更适合查阅而不是一口气读完。
HN 上的人常把它当作学习和查阅 Bash 的现成资源,用来解释进程替换、退出码、算术展开等具体语法;有人指出示例脚本没有按难度排序,也有人觉得 TLDP 的其他 HOWTO 更实用易读。
要写或维护 Shell 脚本的开发者与运维
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先学完基础,再带着具体问题来查对应章节
- 2边读边在终端里运行示例,改改参数看结果
- 3重点看引用、参数展开和进程替换这几类易错处
- 4可以和 man bash 配合,遇到分歧以手册为准
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“See Advanced Bash-Scripting Guide for more information.”
“- Advanced Bash Scripting (online): Advanced Bash-Scripting Guide”
“I forward Advanced Bash-Scripting Guide to everyone who joins my team newly; though only a very few of them make use of it, it would help a lot!”
“I would like to add the Advanced Bash-Scripting Guide as an incredible resource.”
“A quick Google search found Advanced Bash-Scripting Guide and there are many others.”
看全部 20 条 →
“Advanced Bash Scripting Guide by Mendel Cooper has some good scripts which I have come across for some practice but it isn't ordered.”
“Learn you a shell:”
“TLDP's Advanced Bash-Scripting Guide is a great resource for learning bash.”
“You'll get here soon enough: Advanced Bash-Scripting Guide: Advanced Bash-Scripting Guide”
“It's two different syntaxes.”
“For this in particular, try the Advanced Bash Scripting doc, Advanced Bash-Scripting Guide”
“You might like the Advanced Bash Scripting Guide.”
“the TLDP bash programming HOWTOs were more pragmatic and easy to follow (I think that's here: (链接) and Advanced Bash-Scripting Guide )”
“as I just learned from ABS, `$(( ))`”
“See the section under Substring Replacement.”
“Advanced - Advanced Bash-Scripting Guide”
“I'll drop this: Advanced Bash-Scripting Guide If anyone, who has to do anything BASH related, has not seen it then they should!”
“DMOZ seems to have some good resources, going through it quickly I found Advanced Bash-Scripting Guide which has a very good bash intro!”
“advanced bash scripting guide:”