Pro Bash: Learn to Script and Program the Gnu/Linux Shell (Paperback)

Varma, Jayant

  • 出版商: Apress
  • 出版日期: 2023-11-08
  • 售價: $1,998
  • 貴賓價: 9.5$1,898
  • 語言: 英文
  • 頁數: 305
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484295870
  • ISBN-13: 9781484295878
  • 相關分類: Linux
  • 立即出貨 (庫存=1)

商品描述

Learn how to effectively utilize the Bash shell in your programming. This refreshed and expanded third edition has been updated to Bash 5.2, 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.

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 programs through standard programming techniques.

What You'll Learn

 

  • Use the Bash shell to write utilities and accomplish most programming tasks
  • Replace many external commands with shell parameter expansion making scripts very fast
  • Avoid many common mistakes that cause scripts to fail
  • See how Bash's read line and history libraries can save typing when getting user input
  • Build shell scripts that get information from the Web

 

Who This Book Is For

Developers, programmers, and open source enthusiasts who want to write scripts using Bash on multiple platforms

 

商品描述(中文翻譯)

學習如何在程式設計中有效地使用Bash shell。這本經過更新和擴充的第三版已經更新到Bash 5.2,並且許多腳本已經重新編寫,使它們更符合Bash的習慣用法,更好地利用Bash特定的功能。這本書易於閱讀、理解,並且將教你如何掌握Bash編程,而不會淹沒在大量的語法頁面中。

使用這本書,你將能夠有效地使用shell,使用擴展和外部命令使腳本運行更快,並了解如何克服導致腳本失敗的許多常見錯誤。這本書非常適合所有初學Linux和Unix系統管理員,他們想要完全掌握自己的系統,並真正掌握Bash編程。

Bash shell是一個完整的程式語言,不僅僅是結合外部Linux命令的工具。通過充分利用Shell內部功能,Shell程序可以像C或其他編譯語言編寫的工具一樣高效。而且你將看到,即使不需要UNIX知識,你也可以通過標準的編程技巧來編寫專業的Bash程序。

你將學到什麼:
- 使用Bash shell編寫工具和完成大多數編程任務
- 使用shell參數擴展替換許多外部命令,使腳本運行非常快速
- 避免導致腳本失敗的許多常見錯誤
- 看到Bash的讀取行和歷史庫如何在獲取用戶輸入時節省打字
- 構建從網絡獲取信息的shell腳本

這本書適合開發人員、程式設計師和開源愛好者,他們想要在多個平台上使用Bash編寫腳本。

作者簡介

Jayant Varma is the founder of OZ Apps (www.oz-apps.com), a consulting and development company providing IT solutions. He is an experienced developer with more than 30 years of industry experience spread across several countries. As well as being a university lecturer in Australia where he currently resides, he is the author of a number of books topics like SwiftUI Lua and Xcode as well as Open Source topics like Linux, Bash and Shell Scripting . He loves to travel and finds Europe to be his favorite destination.
Chris F.A. Johnson was introduced to Unix in 1990 and 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 report generator. Chris is now retired and currently resides in Toronto, Canada.

作者簡介(中文翻譯)

Jayant Varma 是 OZ Apps (www.oz-apps.com) 的創辦人,該公司提供 IT 解決方案的諮詢和開發服務。他是一位經驗豐富的開發人員,在多個國家擁有超過 30 年的行業經驗。除了目前居住在澳大利亞擔任大學講師外,他還是一些書籍的作者,主題涵蓋 SwiftUI Lua、Xcode,以及像 Linux、Bash 和 Shell Scripting 這樣的開源主題。他喜歡旅行,並將歐洲視為他最喜愛的目的地。

Chris F.A. Johnson 於 1990 年接觸到 Unix,由於系統上沒有 C 編譯器,他學習了 shell 腳本。他的第一個重大項目是一個帶有報表生成器的菜單驅動的、可擴展的用戶數據庫系統。Chris 現已退休,目前居住在加拿大多倫多。