没有合适的资源?快使用搜索试试~ 我知道了~
首页精通Linux Bash编程:从基础到专业实战指南
精通Linux Bash编程:从基础到专业实战指南
1星 需积分: 10 2 下载量 15 浏览量
更新于2024-07-18
收藏 5.77MB PDF 举报
"《专家之声:GNU/Linux Shell编程指南》是一本由Chris F. A. Johnson撰写的专业书籍,专注于学习和提升bash编程技能。这本书适合从基础的单行脚本开始,逐步深入到编写专业级别的程序,覆盖了Bash 4.0版本,是Linux shell脚本编程的权威参考教材。 本书的主要内容包括但不限于以下几个方面: 1. 入门教程:对于初学者,作者会提供一个清晰的引导,教授如何理解和运用bash的基本概念、语法和命令,让读者快速上手。 2. 脚本编写:书中详细讲解了如何编写从简单到复杂的bash脚本,涵盖循环、条件语句、函数等高级编程技巧,帮助读者掌握bash编程的核心逻辑。 3. Bash 4.0特性和新特性:作为一本针对最新版本的教程,书中着重介绍了Bash 4.0的新功能和改进,确保读者能够跟上技术的步伐。 4. 实战项目:通过实际项目的演示,读者可以将所学应用到实际工作中,提升问题解决能力和项目管理能力。 5. 版权和使用授权:书中强调了版权法律,确保读者在合法范围内使用和传播内容,体现了对知识产权的尊重。 6. 编辑和审校团队:本书由Frank Pohlmann担任首席编辑,并由技术审查团队严格把关,保证了内容的专业性和准确性。 《Pro Bash Programming: Scripting the GNU/Linux Shell》不仅是一本教学手册,也是一本实用工具书,无论是希望深入研究bash语言的开发者,还是寻求提高Linux操作效率的系统管理员,都能从中受益匪浅。通过阅读这本书,读者不仅能掌握bash编程的技巧,还能理解如何利用bash进行系统管理和自动化任务。"
资源详情
资源推荐
■ CONTENTS
xv
OPTERR..........................................................................................................................215
PATH ..............................................................................................................................215
POSIXLY_CORRECT ........................................................................................................216
PROMPT_COMMAND......................................................................................................216
PROMPT_DIRTRIM .........................................................................................................216
PS1.................................................................................................................................216
PS2.................................................................................................................................216
PS3.................................................................................................................................216
PS4.................................................................................................................................216
SHELL.............................................................................................................................217
TIMEFORMAT .................................................................................................................217
TMOUT ...........................................................................................................................217
TMPDIR ..........................................................................................................................217
auto_resume..................................................................................................................217
histchars........................................................................................................................218
■Index....................................................................................................................221
www.it-ebooks.info
■ CONENTS
xvi
About the Author
■After almost 20 years in magazine and newspaper publishing, variously as writer,
editor, graphic designer, and production manager, Chris F.A. Johnson now earns
his living composing cryptic crossword puzzles, teaching chess, designing and
coding web sites, and programming...and writing books about shell scripting. His
first book, Shell Scripting Recipes: A Problem-Solution Approach, was published by
Apress in 2005.
Introduced to Unix in 1990, Chris learned shell scripting because there was no
C compiler on the system. His first major project was a menu-driven, user-
extensible database system with a report generator. Constantly writing scripts for
any and all purposes, his recent shell projects have included utilities for
manipulating crossword puzzles and preparing chess resources for his students.
www.it-ebooks.info
■ CONTENTS
xvii
About the Technical Reviewer
■Ed Schaefer is an ex-paratrooper, an ex-military intelligence officer, an ex-oil
field service engineer, and a past contributing editor and columnist for Sys Admin.
He’s not a total has-been. He earned a BSEE from South Dakota School of Mines
and an MBA from USD.
Currently, he fixes microstrategy and teradata problems–with an occasional
foray into Linux–for a Fortune 50 company.
www.it-ebooks.info
■ INTRODUCTION
xix
Introduction
Although most users think of the shell as an interactive command interpreter, it is really a
programming language in which each statement runs a command. Because it must satisfy
both the interactive and programming aspects of command execution, it is a strange
language, shaped as much by history as by design.
Brian Kernighan and Rob Pike, The UNIX Programming Environment, Prentice-Hall, 1984
The shell is a programming language. Don’t let anyone tell you otherwise. The shell is not just glue that
sticks bits together. The shell is a lot more than a tool that runs other tools. The shell is a complete
programming language!
When a Linux user asked me about membership databases, I asked him what he really needed. He
wanted to store names and addresses for a couple of hundred members and print mailing labels for each
of them. I recommended using a text editor to store the information in a text file, and I provided a shell
script to create the labels in PostScript. (The script, ps-labels, appeared in my first book, Shell Scripting
Recipes: A Problem-Solution Approach.)
When the SWEN worm was dumping hundreds of megabytes of junk into my mailbox every few
minutes, I wrote a shell script to filter them out on the mail server and download the remaining mail to
my home computer. That script has been doing its job for several years.
I used to tell people that I did most of my programming in the shell but switched to C for anything
that needed the extra speed. It has been several years since I have needed to use C, so I no longer
mention it. I do everything in the shell.
A shell script is as much a program as anything written in C, Python, or any other language. Just
because shell scripts are easier to write doesn’t mean they should take a backseat to compiled programs
or other scripting languages. I use the terms script and program interchangeably when referring to tasks
written in the shell.
Why the Shell?
Some Linux users do all of their work in a GUI environment and never see a command line. Most,
however, use the shell at least occasionally and know something about Unix commands. It’s not a big
step from there to saving oft-repeated commands in a script file. When they need to extend the
capabilities of their system, the shell is the natural way to go.
The shell also has important advantages over other programming languages:
• It interfaces simply and seamlessly with the hundreds of Unix utilities.
• It automatically expands wildcards into a list of file names.
• Lists contained in a variable are automatically split into their constituent parts.
www.it-ebooks.info
剩余256页未读,继续阅读
guolibao
- 粉丝: 0
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 贵州煤矿矿井水分类与处理策略:悬浮物、酸性与非酸性
- 醛固酮增多症肾上腺静脉采样对比:ACTH后LR-CAV的最优评估
- 开源云连接传感器监控平台:农业土壤湿度远程监测
- 母婴用品企业年度生产计划线性规划优化模型:实证与应用
- 井下智能变电站:Rogowski线圈电流检测系统的研发与性能验证
- 霍州矿区煤巷稳定性分析及支护策略
- ARM嵌入式系统远程软件更新方案:基于TFTP协议
- 煤炭选煤中汞分布规律与洗选脱汞效果
- 提升码垛机器人性能:拉格朗日动力学模型与滑模模糊控制的应用
- 增强现实技术提升学前手写教学:设计与开发案例
- 不规则工作面沉陷三角剖分算法提升与应用
- 卡尔曼滤波在瞬变电磁干扰压制中的应用研究
- 煤矿安全能力研究:理论与系统构建
- LonWorks总线技术在斜巷运输车辆定位与跑车防护中的应用
- 神东煤炭集团高效煤粉锅炉系统:节能环保新实践
- Ti/SnO2+Sb2Ox/PbO2电极分形维数与电催化性能研究
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功