Book description
Shell scripting skills never go out of style. It's the shell that unlocks the real potential of Unix. Shell scripting is essential for Unix users and system administrators-a way to quickly harness and customize the full power of any Unix system. With shell scripts, you can combine the fundamental Unix text and file processing commands to crunch data and automate repetitive tasks. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards. Classic Shell Scripting is written to help you reliably navigate these tricky waters.Writing shell scripts requires more than just a knowledge of the shell language, it also requires familiarity with the individual Unix programs: why each one is there, how to use them by themselves, and in combination with the other programs. The authors are intimately familiar with the tips and tricks that can be used to create excellent scripts, as well as the traps that can make your best effort a bad shell script. With Classic Shell Scripting you'll avoid hours of wasted effort. You'll learn not only write useful shell scripts, but how to do it properly and portably.The ability to program and customize the shell quickly, reliably, and portably to get the best out of any individual system is an important skill for anyone operating and maintaining Unix or Linux systems. Classic Shell Scripting gives you everything you need to master these essential skills.
Publisher resources
Table of contents
-
Classic Shell Scripting
- SPECIAL OFFER: Upgrade this ebook with OâReilly
- A Note Regarding Supplemental Files
- Foreword
- Preface
- 1. Background
- 2. Getting Started
-
3. Searching and Substitutions
- 3.1. Searching for Text
-
3.2. Regular Expressions
- 3.2.1. What Is a Regular Expression?
- 3.2.2. Basic Regular Expressions
- 3.2.3. Extended Regular Expressions
- 3.2.4. Regular Expression Extensions
- 3.2.5. Which Programs Use Which Regular Expressions?
- 3.2.6. Making Substitutions in Text Files
- 3.2.7. Basic Usage
- 3.2.8. sed Operation
- 3.2.9. Matching Specific Lines
- 3.2.10. How Much Text Gets Changed?
- 3.2.11. Lines Versus Strings
- 3.3. Working with Fields
- 3.4. Summary
- 4. Text Processing Tools
- 5. Pipelines Can Do Amazing Things
- 6. Variables, Making Decisions, and Repeating Actions
- 7. Input and Output, Files, and Command Evaluation
- 8. Production Scripts
- 9. Enough awk to Be Dangerous
- 10. Working with Files
- 11. Extended Example: Merging User Databases
-
12. Spellchecking
- 12.1. The spell Program
- 12.2. The Original Unix Spellchecking Prototype
- 12.3. Improving ispell and aspell
-
12.4. A Spellchecker in awk
- 12.4.1. Introductory Comments
- 12.4.2. Main Body
- 12.4.3. initialize( )
- 12.4.4. get_dictionaries( )
- 12.4.5. scan_options( )
- 12.4.6. load_dictionaries( )
- 12.4.7. load_suffixes( )
- 12.4.8. order_suffixes( )
- 12.4.9. spell_check_line( )
- 12.4.10. spell_check_word( )
- 12.4.11. strip_suffixes( )
- 12.4.12. report_exceptions( )
- 12.4.13. Retrospective on Our Spellchecker
- 12.4.14. Efficiency of awk Programs
- 12.5. Summary
- 13. Processes
- 14. Shell Portability Issues and Extensions
- 15. Secure Shell Scripts: Getting Started
- A. Writing Manual Pages
- B. Files and Filesystems
- C. Important Unix Commands
- 16. Bibliography
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OâReilly
Product information
- Title: Classic Shell Scripting
- Author(s):
- Release date: May 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596555269
You might also like
book
Linux Shell Scripting Essentials
Learn shell scripting to solve complex shell-related problems and to efficiently automate your day-to-day tasks About …
book
Mastering Linux Shell Scripting
Master the complexities of Bash shell scripting and unlock the power of shell for your enterprise …
book
Linux Command Line and Shell Scripting Bible, 3rd Edition
Talk directly to your system for a faster workflow with automation capability Linux Command Line and …
book
Linux Shell Scripting Cookbook - Third Edition
Do amazing things with the shell About This Book Become an expert in creating powerful shell …