Book description
Unix Shell Programming is a tutorial aimed at helping Unix and Linux users get optimal performance out of their operating 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. The reader learns everything he or she needs to know to customize the way a Unix system responds.
The vast majority of Unix users utilize the Korn shell or some variant of the Bourne shell, such as bash. Three are covered in the third edition of Unix Shell Programming. It begins with a generalized tutorial of Unix and tools and then moves into detailed coverage of shell programming.
Topics covered include: regular expressions, the kernel and the utilities, command files, parameters, manipulating text filters, understanding and debugging shell scripts, creating and utilizing variables, tools, processes, and customizing the shell.
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- About the Authors
- Dedication Page
- We Want to Hear from You!
- Reader Services
- 1. Introduction
-
2. A Quick Review of the Basics
- Some Basic Commands
- Working with Files
-
Working with Directories
- The Home Directory and Pathnames
- Displaying Your Working Directory: The pwd Command
- Changing Directories: The cd Command
- More on the ls Command
- Creating a Directory: The mkdir Command
- Copying a File from One Directory to Another
- Moving Files Between Directories
- Linking Files: The ln Command
- Removing a Directory: The rmdir Command
- Filename Substitution
- Standard Input/Output and I/O Redirection
- Pipes
- Standard Error
- More on Commands
- Command Summary
- Exercises
- 3. What Is the Shell?
-
4. Tools of the Trade
-
Regular Expressions
- Matching Any Character: The Period (.)
- Matching the Beginning of the Line: The Caret (^)
- Matching the End of the Line: The Dollar Sign ($)
- Matching a Choice of Characters: The [...] Construct
- Matching Zero or More Characters: The Asterisk (*)
- Matching a Precise Number of Characters: \{...\}
- Saving Matched Characters: \(...\)
- cut
- paste
- sed
- tr
- grep
- sort
- uniq
- Exercises
-
Regular Expressions
- 5. And Away We Go
- 6. Can I Quote You on That?
- 7. Passing Arguments
- 8. Decisions, Decisions
- 9. ’Round and ’Round She Goes
- 10. Reading and Printing Data
- 11. Your Environment
- 12. More on Parameters
- 13. Loose Ends
- 14. Rolo Revisited
- 15. Interactive and Nonstandard Shell Features
-
A. Shell Summary
- Startup
- Commands
- Comments
- Parameters and Variables
- Command Re-entry
- Quoting
- Filename Substitution
- I/O Redirection
- Exported Variables and Subshell Execution
- Functions
- Job Control
-
Command Summary
- The : Command
- The . Command
- The alias Command
- The bg Command
- The break Command
- The case Command
- The cd Command
- The continue command
- The echo Command
- The eval Command
- The exec Command
- The exit Command
- The export Command
- The false Command
- The fc Command
- The fg Command
- The for Command
- The getopts Command
- The hash Command
- The if Command
- The jobs Command
- The kill Command
- The newgrp Command
- The pwd Command
- The read Command
- The readonly Command
- The return Command
- The set Command
- The shift Command
- The test Command
- The times Command
- The trap Command
- The true Command
- The type Command
- The umask Command
- The unalias Command
- The unset Command
- The until Command
- The wait Command
- The while Command
- B. For More Information
- Index
- Code Snippets
Product information
- Title: Unix Shell Programming, Third Edition
- Author(s):
- Release date: February 2003
- Publisher(s): Sams
- ISBN: 0672324903
You might also like
book
Linux and Unix Shell Programming
Learn how to create and develop shell scripts in a step-by-step manner increasing your knowledge as …
book
Shell Programming in Unix, Linux and OS X, Fourth Edition
Shell Programming in Unix, Linux and OS X is a thoroughly updated revision of Kochan and …
book
Introduction to Unix and Shell Programming
Introduction to Unix and Shell Programming is designed to be an introductory first-level book for a …
book
Linux Shells by Example
The complete guide to bash and tsch—PLUS grep, sed, and gawk! Learn Linux shell programming hands-on! …