Pro Bash Programming: Scripting the GNU/Linux Shell, 2nd Edition

0
(0)

Pro Bash Programming: Scripting the GNU/Linux Shell, 2nd Edition
 

  • Author:Jayant Varma
  • Length: 256 pages
  • Edition: 2
  • Publisher: Apress
  • Publication Date: 2015-06-17
  • ISBN-10: 1484201221
  • ISBN-13: 9781484201220
  • Sales Rank: #2069113 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Pro Bash Programming teaches you how to effectively utilize the Bash shell in your programming. The Bash shell is a complete programming language, not merely a glue to combine external Linux commands. By taking full advantage of Shell internals, Shell programs can perform as snappily as utilities written in C or other compiled languages. And you will see how, without assuming Unix lore, you can write professional Bash 4.3 programs through standard programming techniques.

    This second edition has updated for Bash 4.3, and many scripts have been rewritten to make them more idiomatically Bash, taking better advantage of features specific to Bash. It is easy to read, understand, and will teach you how to get to grips with Bash programming without drowning you in pages and pages of syntax.

    Using this book you will be able to use the shell efficiently, make scripts run faster using expansion and external commands, and understand how to overcome many common mistakes that cause scripts to fail. This book is perfect for all beginning Linux and Unix system administrators who want to be in full control of their systems, and really get to grips with Bash programming.

    What you’ll learn

    • Use the shell to write new utilities and accomplish most programming tasks.
    • Use shell parameter expansion to replace many external commands, making scripts very fast.
    • Learn to avoid many common mistakes that cause scripts to fail.
    • Learn how Bash’s readline and history libraries can save typing when getting user input.
    • Learn to use features new to Bash 4.0.
    • Build shell scripts that get information from the Web.

    Who this book is for

    Beginning Linux and Unix system administrators who want to be in full command of their systems.

    Table of Contents

    Chapter One: Hello, World! Your First Shell Program
    Chapter Two: Input, Output, and Throughput
    Chapter Three: Looping and Branching
    Chapter Four: Command-Line Parsing and Expansion
    Chapter Five: Parameters and Variables
    Chapter Six: Shell Functions
    Chapter Seven: String Manipulation
    Chapter Eight: File Operations and Commands
    Chapter Nine: Reserved Words and Builtin Commands
    Chapter Ten: Writing Bug-Free Scripts and Debugging the Rest
    Chapter Eleven: Programming for the Command Line
    Chapter Twelve: Runtime Configuration
    Chapter Thirteen: Data Processing
    Chapter Fourteen: Scripting the Screen
    Chapter Fifteen: Entry-Level Programming
    Appendix A: Shell Variables

    中文:

    书名:Pro Bash编程:编写GNU/Linux外壳脚本,第二版

    Pro Bash编程 教您如何在编程中有效地利用Bash外壳。Bash外壳是一种完整的编程语言,而不仅仅是组合外部Linux命令的粘合剂。通过充分利用Shell内部机制,Shell程序可以像用C或其他编译语言编写的实用程序一样快速执行。您将看到,在不了解Unix知识的情况下,如何通过标准编程技术编写专业的Bash4.3程序。

    第二版已经针对Bash 4.3进行了更新,许多脚本已经被重写,使它们更加地道地使用Bash,从而更好地利用了Bash特有的功能。它很容易阅读和理解,并将教您如何掌握Bash编程,而不会淹没在一页又一页的语法中。

    使用这本书,您将能够有效地使用外壳,使用扩展和外部命令使脚本运行得更快,并了解如何克服导致脚本失败的许多常见错误。这本书非常适合所有想要完全控制自己的系统并真正掌握Bash编程的Linux和Unix系统管理员。

    你会学到什么?

    • 使用外壳来编写新的实用程序并完成大多数编程任务。
    • 使用外壳参数扩展来取代许多外部命令,使得脚本非常快。
    • 学会避免许多导致脚本失败的常见错误。
    • 了解Bash的READLINE和历史库如何在获取用户输入时省去输入。
    • 学习使用Bash4.0的新功能。
    • Build shell scripts that get information from the Web.

    这本书是为谁而写的

    希望完全控制其系统的初级Linux和Unix系统管理员。

    目录表

    第一章:你好,世界!您的第一个外壳程序
    Chapter Two: Input, Output, and Throughput
    Chapter Three: Looping and Branching
    第四章:命令行解析和扩展
    第五章:参数和变量
    第六章:外壳函数
    第七章:字符串操作
    第八章:文件操作和命令
    第九章:保留字和内置命令
    第十章:编写无错误的脚本并调试其余部分
    第十一章:命令行编程
    第十二章:运行时配置
    第十三章:数据处理
    第十四章:编写屏幕脚本
    第十五章:入门级编程
    附录A:外壳变量

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册