
Shell Scripting Recipes: A Problem-Solution Approach
Learn by example while automating common tasks with this collection of portable shell scripts
Chris F. A. Johnson - Collection The Expert's Voice in Open Source
Résumé
Shell scripts offer an impressive means for creating powerful and portable applications. When coupled with utilities such as grep, sed, and the AWK programming language, the shell is more than adequate for resolving a wide range of programming tasks. I wrote this book to demonstrate these exciting capabilities and help you to learn shell scripting by providing hundreds of examples.
The opening chapter sets the stage for this collection, introducing many Unix shell features and helping familiarize you with the syntax in many of the examples. The following chapters present scripts and shell functions ranging from one-liners to multipage programs. These scripts and functions are capable of accomplishing commonplace tasks such as converting DOS-based text files to Unix and vice versa, maintaining financial ledgers (which can be easily imported to a spreadsheet program), extracting information from web pages, and more. To facilitate code reuse, the book offers numerous function libraries that you can use to build even more programs quickly.
Some scripts in this book are taken from the hundreds I've written over the past 15 years, while others were written specifically for this book. I carefully selected each not only to demonstrate the breadth of problems that can be solved with shell scripts, but also to illustrate as many scripting techniques as possible.
I hope this book will help you solve the many problems illustrated by these scripts, and also encourage and help you to write your own.
Sommaire
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- The POSIX Shell and Command-Line Utilities
- Playing with Files: Viewing, Manipulating and Editing Text Files
- String Briefs
- What's in a Word?
- Scripting by Numbers
- Loose Names Sink Scripts: Bringing Sanity to Filenames
- Treading a Righteous PATH
- The Dating Game
- Good Housekeeping: Monitoring and Tidying Up File Systems
- POP Goes the E-Mail
- PostScript: More Than an Afterthought
- Screenplay: The screen-funcs Library
- Backing Up the Drive
- Aging, Archiving, and Deleting Files
- Covering All Your Databases
- Home on the Web
- Taking Care of Business
- Random Acts of Scripting
- A Smorgasbord of Scripts
- Script Development Management
- Appendix: Internet Scripting Resources
- Index
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Apress |
Auteur(s) | Chris F. A. Johnson |
Collection | The Expert's Voice in Open Source |
Parution | 08/06/2005 |
Nb. de pages | 422 |
Format | 17,5 x 23,5 |
Couverture | Broché |
Poids | 708g |
Intérieur | Noir et Blanc |
EAN13 | 9781590594711 |
ISBN13 | 978-1-59059-471-1 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse