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.
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
Utilizziamo i cookie di profilazione, anche di terze parti, per migliorare la navigazione, per fornire servizi e proporti pubblicità in linea con le tue preferenze. Se vuoi saperne di più o negare il consenso a tutti o ad alcuni cookie clicca qui. Chiudendo questo banner o proseguendo nella navigazione acconsenti all’uso dei cookie.