Автор: Chris F.A. Johnson, Jayant Varma
Серия: The Expert's Voice
Качество: Изначально компьютерное (eBook) (converted)
Интерактивное оглавление: Да
Количество страниц: 256
Описание: 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.
About the Authors
Chapter 1: Hello, World: Your First Shell Program
Chapter 2: Input, Output, and Throughput
Chapter 3: Looping and Branching
Chapter 4: Command-Line Parsing and Expansion
Chapter 5: Parameters and Variables
Chapter 6: Shell Functions
Chapter 7: String Manipulation
Chapter 8: File Operations and Commands
Chapter 9: Reserved Words and Built-In Commands
Chapter 10: Writing Bug-Free Scripts and Debugging the Rest
Chapter 11: Programming for the Command Line
Chapter 12: Runtime Configuration
Chapter 13: Data Processing
Chapter 14: Scripting the Screen
Chapter 15: Entry-Level Programming
Appendix A: Shell Variables