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
video
Complete Bash Shell Scripting
Many organizations favor Bash scripts for executing shell commands, running and customizing administrative tasks, automating repetitive …
video
Bash Shell Scripting, 2nd Edition
8 Hours of Video Instruction Overview Bash is the best way for you to efficiently and …
book
Linux Command Line and Shell Scripting Bible, 4th Edition
Advance your understanding of the Linux command line with this invaluable resource Linux Command Line and …
book
The Linux Command Line, 2nd Edition
The Linux Command Line takes you from your very first terminal keystrokes to writing full programs …