Shell Scripting
Expert Recipes for Linux, Bash and more
Published in August 2011, Shell Scripting: Expert Recipes for Linux, Bash and more is a 600-page book on Shell Scripting for the intermediate to advanced reader. Largely focussed on Linux and the Bash shell (including Bash version 4), it covers all Unix flavours, includes a lot of information about the Bourne shell and relevant to all Bourne-compatible shells, as well as giving an overview of the different shells available.
UK Readers can buy here - USA Readers can buy here. Also on Kindle, iPad, Nook; just use your native search tool to find it for your preferred platform.
The first half of the book covers the theory and principles, with realistic examples provided as recipes for each feature. The second half of the book provides solid, real-world recipes which can be used as-is, or taken as a starting point to write similar scripts to fit the tasks a systems administrator faces day to day.
Chapter Outline
The full Table of Contents [pdf] is 12 pages long, but this table shows the basic layout. The first half of the book is tutorial style, the second half consists of recipes with detailed discussion about the design and structure of each recipe.| Part I - Language and Usage | Page | |
|---|---|---|
| Chapter 1 | History | 3 |
| Chatper 2 | Getting Started | 15 |
| Chapter 3 | Variables | 33 |
| Chapter 4 | Wildcard Expansion | 67 |
| Chapter 5 | Conditional Execution | 83 |
| Chapter 6 | Loops | 111 |
| Chapter 7 | Variables Continued | 139 |
| Chapter 8 | Functions and Libraries | 161 |
| Chapter 9 | Arrays | 199 |
| Chapter 10 | Processes | 219 |
| Chapter 11 | Choosing and Using Shells | 255 |
| Part II - Recipes for Using and Extending System Tools | ||
| Chapter 12 | File Manipulation | 279 |
| Chapter 13 | Text Manipulation | 315 |
| Chapter 14 | Tools For Systems Administration | 353 |
| Part III - Recipes for Systems Administration | ||
| Chapter 15 | Shell Features Recipe 15-1: Installing Init Scripts Recipe 15-2: RPM Report Recipe 15-3: Postinstall Scripts | 409 |
| Chapter 16 | Systems Administration Recipe 16-1: Init Scripts Recipe 16-2: CGI Scripts Recipe 16-3: Configuration Files Recipe 16-4: Locks | 427 |
| Chapter 17 | Presentation Recipe 17-1: Space Game | 459 |
| Chapter 18 | Data Storage and Retrieval Recipe 18-1: Parsing HTML Recipe 18-2: CSV Formatting | 471 |
| Chapter 19 | Numbers Recipe 19-1: The Fibonacci Sequence Recipe 19-2: PXE Booting | 483 |
| Chapter 20 | Processes Recipe 20-1: Process Control | 501 |
| Chapter 21 | Internationalization Recipe 21-1: Internationalization | 517 |
| Part IV - Appendix | ||
| Appendix | Further Reading; Shell Tutorials, Documentation, Shell Services, Glossary | 529 |
To Buy the Book
To buy the book from Amazon, simply click on its image in the panel on the right hand side of this page, or from your preferred supplier via http://www.wiley.com/buy/1118024486. You should also be able to find it on the High Street from your favourite bookstore, as well as in electronic format (Safari, iPad, Kindle, etc), or just search for 1118024486.
Publisher's Page
http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1118024486.html is the publisher's page for the book, with more information, international prices, and more details. It also contains links to download the first chapter, the Table of Contents and the Index. You can also download the code from that page.You can get the book from various bookstores via http://www.wiley.com/buy/1118024486, or just use your favourite search engine, or ask your local bookstore for ISBN 1118024486.

