Synopses & Reviews
Tried-and-true recipes that can be immediately applied or easily adjusted to meet your needs
The shell is the primary way of communicating with Unix and Linux systems, providing a direct way to program by automating simple to intermediate tasks. In this invaluable resource, Unix, Linux, and shell scripting expert Steve Parker shares a collection of shell scripting recipes that can be used as provided or easily modified for a variety of environments and situations. The book begins with coverage of theory and principles, replete with insightful examples of each element discussed. You then move on to an in-depth discussion of shell programming, covering all Unix flavors but with a focus on Linux and the Bash shell. All the while, you explore credible, real-world recipes and the tools necessary to get started immediately.
Shares a compendium of helpful shell scripting recipes that can be used to address a variety of real-world challenges
Includes recipes using file and text control as well as general systems administration tasks
Provides a host of plug-and-play recipes ready for you to immediately apply and easily modify
Examines variables, if/then conditionals, loops, functions, pipes, redirects, and more
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.
Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.
A compendium of shell scripting recipes that can immediately be used, adjusted, and applied
The shell is the primary way of communicating with the Unix and Linux systems, providing a direct way to program by automating simple-to-intermediate tasks. With this book, Linux expert Steve Parker shares a collection of shell scripting recipes that can be used as is or easily modified for a variety of environments or situations. The book covers shell programming, with a focus on Linux and the Bash shell; it provides credible, real-world relevance, as well as providing the flexible tools to get started immediately.
- Shares a collection of helpful shell scripting recipes that can immediately be used for various of real-world challenges
- Features recipes for system tools, shell features, and systems administration
- Provides a host of plug and play recipes for to immediately apply and easily modify so the wheel doesn't have to be reinvented with each challenge faced
Come out of your shell and dive into this collection of tried and tested shell scripting recipes that you can start using right away!
About the Author
Steve Parker is an IT consultant specializing in Solaris and GNU/Linux. He has been providing consultancy services for more than a decade. He is the author of the popular Bourne Shell Programming/Scripting Tutorial (http://steve-parker.org/sh/sh.shtml), which sees more than one million visitors a year.
Table of Contents
PART I: ABOUT THE INGREDIENTS.
CHAPTER 1: THE HISTORY OF UNIX, GNU, AND LINUX 3
CHAPTER 2: GETTING STARTED 15
CHAPTER 3: VARIABLES 33
CHAPTER 4: WILDCARD EXPANSION 67
CHAPTER 5: CONDITIONAL EXECUTION 83
CHAPTER 6: FLOW CONTROL USING 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 409
CHAPTER 16: SYSTEMS ADMINISTRATION 427
CHAPTER 17: PRESENTATION 459
CHAPTER 18: DATA STORAGE AND RETRIEVAL 471
CHAPTER 19: NUMBERS 483
CHAPTER 20: PROCESSES 501
CHAPTER 21: INTERNATIONALIZATION 517
PART IV: REFERENCE.
APPENDIX: FURTHER READING 529