Synopses & Reviews
The vast majority of users utilize the Korn Shell or some variant of the Bourne Shell, such as bash.
Sam's Teach Yourself Shell Programming in 24 Hours covers these shells. It begins with a generalized tutorial of Unix and tools and then moves into detailed coverage of shell programming.
Sam's Teach Yourself Shell Programming in 24 Hours is one of the best values because it provides readers with more information for less money. This book uses the effective and proven 'Teach Yourself' format to instruct the reader how to make their shell work for them.
It covers useful information including:
- managing input/output
- manipulating text filters
- understanding and debugging shell scripts
- creating and utilizing variables, tools, processes
- customizing the shell
Sams' Teach Yourself Shell Programming in 24 Hours is a tutorial aimed at assisting Unix and Linux users to get optimal performance out of their operating system. It shows them how to take control of their systems and work efficiently by harnessing the power of the shell to solve common problems.
Synopsis
The vast majority of users utilize the Korn shell or some variant of the Bourne shell, such as Bash. This book covers these shells. It begins with a generalized tutorial of UNIX and tools and then moves into detailed coverage of shell programming. Sams Teach Yourself Shell Programming in 24 Hours is one of the best values because it provides readers with more information for less money. This book uses the effective and proven Teach Yourself format to instruct the reader how to make their shell work for them. It covers useful information including managing input/output, manipulating text filters, understanding and debugging shell scripts creating and utilizing variables, tools, processes, and customizing the shell
Synopsis
-- Helps the beginner become a productive shell programmer in just 24 hours.
-- Revised with updated useful information requested through reader feedback.
-- This book teaches the reader shell programming for Bourne, Korn, and Bash shells on UNIX and Linux systems.
The vast majority of users utilize the Korn shell or some variant of the Bourne shell, such as Bash. This book covers these shells. It begins with a generalized tutorial of UNIX and tools and then moves into detailed coverage of shell programming. Sams Teach Yourself Shell Programming in 24 Hours is one of the best values because it provides readers with more information for less money. This book uses the effective and proven Teach Yourself format to instruct the reader how to make their shell work for them. It covers useful information including managing input/output, manipulating text filters, understanding and debugging shell scripts creating and utilizing variables, tools, processes, and customizing the shell.
About the Author
SRIRANGA VEERARAGHAVAN is a material scientist by training and a software engineer by trade. He has several years of software development experience in C, Java, Perl, and Bourne Shell and has contributed to several books, including
Solaris 8: Complete Reference,
UNIX Unleashed and
Special Edition Using UNIX. Sriranga graduated from the University of California at Berkeley in 1997 and is presently pursuing further studies. He is currently employed in the Server Appliance group at Sun Microsystems, Inc. Before joining Sun, Sriranga was employed at Cisco Systems, Inc. Among other interests, Sriranga enjoys mountain biking, classical music, and playing Marathon with his brother Srivathsa. Sriranga can be reached via e-mail at
[email protected].
Table of Contents
(NOTE:
Each chapter concludes with a Summary, Questions, and Terms.)
Introduction.
I. Introduction to UNIXand Shell Tools. Hour 1. Shell Basics.
What Is a Command? What Is the Shell? Hour 2. Script Basics.
The UNIX System. Shell Modes and Initialization. Getting Help. Hour 3. Working with Files.
Listing Files. File Contents. Manipulating Files. Hour 4. Working with Directories.
The Directory Tree. Switching Directories. Listing Files and Directories. Manipulating Directories. Hour 5. Input and Output.
Output. Input. File Descriptors. Hour 6. Manipulating File Attributes.
File Types. Owners, Groups, and Permissions. Hour 7. Processes.
Starting a Process. Listing and Terminating Processes. Parent and Child Processes.
II. Shell Programming. Hour 8. Variables.
Working with Variables. Environment and Shell Variables. Hour 9. Substitution.
Filename Substitution (Globbing). Variable Substitution. Command and Arithmetic Substitution. Hour 10. Quoting.
Quoting with Backslashes. Using Single Quotes. Using Double Quotes. Quoting Rules and Situations. Hour 11. Flow Control.
The if Statement. The case Statement. Hour 12. Loops.
The while Loop. The for and select Loops. Loop Control. Hour 13. Parameters.
Special Variables. Options and Arguments. Option Parsing in Shell Scripts. Hour 14. Functions.
Using Functions. Understanding Scope, Recursion, Return Codes, and Data Sharing. Hour 15. Text Filters.
The head and tail Commands. Using grep. Counting Words. Hour 16. Filtering Text with Regular Expressions.
The Basics of awk and sed. Using sed. Hour 17. Filtering Text with awk.
What Is awk? Using awk Features. Hour 18. Other Tools.
The Built-In Commands. The sleep Command. The find Command. xargs. The expr Command. The bc Command.
III. Advanced Topics. Hour 19. Signals.
How Are Signals Represented? Dealing with Signals. Hour 20. Debugging.
Enabling Debugging. Using Syntax Checking. Shell Tracing. Hour 21. Problem Solving with Functions.
Library Basics. Creating a Library. Hour 22. Problem Solving with Shell Scripts.
Startup Scripts. Maintaining an Address Book. Hour 23. Scripting for Portability.
Determining UNIX Versions. Techniques for Increasing Portability. Hour 24. Shell Programming FAQs.
Shell and Command Questions. Variable and Argument Questions. File and Directory Questions.
IV. Appendixes. Appendix A. Command Quick Reference
Reserved Words and Built-in Shell Commands. Conditional Expressions. Arithmetic Expressions (ksh, bash, and zsh Only). Parameters and Variables. Input/Output. Pattern Matching and Regular Expressions. Appendix B. Glossary.
Appendix C. Answers to Questions.
Appendix D. Shell Function Library.
Index.