We use cookies to provide essential features and services. By using our website you agree to our use of cookies .

×

Warehouse Stock Clearance Sale

Grab a bargain today!


Unix Shells by Example
By

Rating

Product Description
Product Details

Table of Contents

Preface.

Acknowledgments.

1. Introduction to UNIX/Linux Shells.

    What Is UNIX? What Is Linux? A Little History.

    Definition and Function of a Shell.

    History of the Shell.

    System Startup and the Login Shell.

    Processes and the Shell.

    The Environment and Inheritance.

    Executing Commands from Scripts.

2. Shell Programming QuickStart.

    Taking a Peek at Shell Scripts.

    Sample Scripts: Comparing the Major Shells.

    The C and TC Shell Syntax and Constructs.

    The Bourne Shell Syntax and Constructs.

    The Korn Shell Constructs.

    The Bash Shell Constructs.

3. Regular Expressions and Pattern Matching.

    Regular Expressions.

    Combining Regular Expression Metacharacters.

4. The grep Family.

    The grep Command.

    grep Examples with Regular Expressions.

    grep with Options.

    grep with Pipes.

    egrep (Extended grep).

    fgrep (Fixed grep or Fast grep).

    Linux and GNU grep.

    GNU Basic grep (grep -G) with Regular Expressions.

    grep -E or egrep (GNU Extended grep).

    Fixed grep (grep -F and fgrep).

    Recursive grep (rgrep, grep -R).

    GNU grep with Options.

    grep with Options (UNIX and GNU).

    LAB 1: grep Exercise.

5. sed, the Streamlined Editor.

    What Is sed?

     Versions of sed.

    How Does sed Work?

    Regular Expressions.

    Addressing.

    Commands and Options.

    Error Messages and Exit Status.

    Metacharacters.

    sed Examples.

    sed Scripting.

    LAB 2: sed Exercise.

6. The awk Utility.

    What's awk? What's nawk? What's gawk?

    awk's Format.

    How awk Works.

    Formatting Output.

    awk Commands from Within a File.

    Records and Fields.

    Patterns and Actions.

    Regular Expressions.

    awk Commands in a Script File.

    Review.

    LAB 3: awk Exercise.

    Comparison Expressions.

    Review.

    LAB 4: awk Exercise.

    Variables.

    Redirection and Pipes.

    Pipes.

    Review.

    LAB 5: nawk Exercise.

    Conditional Statements.

    Loops.

    Program Control Statements.

    Arrays.

    awk Built-In Functions.

    Built-In Arithmetic Functions.

    User-Defined Functions (nawk).

    Review.

    LAB 6: nawk Exercise.

    Odds and Ends.

    LAB 7: nawk Exercise.

    awk Built-In Functions.

7. The Interactive Bourne Shell.

    Introduction.

    The Environment.

    The Command Line.

    Shell Metacharacters (Wildcards).

    Filename Substitution.

    Variables.

    Quoting.

    Command Substitution.

    An Introduction to Functions.

     Standard I/O and Redirection.

    Pipes.

    The here document and Input.

8. Programming the Bourne Shell.

    Introduction.

    Reading User Input.

    Arithmetic.

    Positional Parameters and Command-Line Arguments.

    Conditional Constructs and Flow Control.

    Looping Commands.

    Functions.

    Trapping Signals.

    The Command Line.

    Shell Invocation Options.

    LAB 8: Bourne Shell--Getting Started.

    LAB 9: Metacharacters.

    LAB 10: Redirection.

    LAB 11: First Script.

    LAB 12: Command-Line Arguments.

    LAB 13: Getting User Input.

    LAB 14: Conditional Statements.

    LAB 15: Conditionals and File Testing.

    LAB 16: The case Statement.

    LAB 17: Loops.

    LAB 18: Functions.

9. The Interactive C and TC Shells.

    Introduction.

    The Environment.

    The C/TC Shell Command Line.

    Aliases.

    Manipulating the Directory Stack.

    Job Control.

    Shell Metacharacters.

    Filename Substitution.

    Redirection and Pipes.

    Variables.

    Command Substitution.

    Quoting.

    New Features of the Interactive TC Shell.

    The TC Shell Command Line.

    TC Shell Command, Filename, and Variable Completion.

    TC Shell Spelling Correction.

    TC Shell Aliases.

    TC Shell Job Control.

    Printing the Values of Variables in the TC Shell.

    TC Shell Built-In Commands.

    Lab 19: The TC Shell--Getting Started.

    Lab 20: History.

    Lab 21: Shell Metacharacters.

    Lab 23: Variables and Arrays.

    Lab 22: Redirection.

10. Programming the C and TC Shells.

    Introduction.

    Reading User Input.

    Arithmetic.

    Debugging Scripts.

    Command-Line Arguments.

    Conditional Constructs and Flow Control.

    Looping Commands.

    Interrupt Handling.

    setuid Scripts.

    Storing Scripts.

    Built-In Commands.

    Lab 24: C/TC Shells--Getting Started.

    Lab 25: Shell Metacharacters.

    Lab 26: Redirection.

    Lab 27: First Script.

    Lab 28: Getting User Input.

    Lab 29: Command-Line Arguments.

    Lab 30: Conditionals and File Testing.

    Lab 31: The switch Statement.

    Lab 32: Loops.

11. The Interactive Korn Shell.

    Introduction.

    The Environment.

    The Command Line.

    Commenting and Filename Expansion.

    Aliases.

    Job Control.

    Metacharacters.

    Filename Substitution (Wildcards).

    Variables.

    Quoting.

    Command Substitution.

    Functions.

    Standard I/O and Redirection.

    Pipes.

    Timing Commands.

12. Programming the Korn Shell.

    Introduction.

    Reading User Input.

    Arithmetic.

    Positional Parameters and Command-Line Arguments.

    Conditional Constructs and Flow Control.

    Looping Commands.

    Arrays.

    Functions.

    Trapping Signals.

    Coprocesses.

    Debugging.

    The Command Line.

    Security.

    Built-In Commands.

    Korn Shell Invocation Arguments.

    Lab 33: Korn Shell--Getting Started.

    Lab 34: History.

     Lab 35: Aliases and Functions.

    Lab 36: Shell Metacharacters.

    Lab 37: Tilde Expansion, Quotes, and Command Substitution.

    Lab 38: Redirection.

    Lab 39: Job Control.

    Lab 40: Writing the info Shell Script.

    Lab 41: Variable Expansion of Substrings.

    Lab 42: The lookup Script.

    Lab 43: Using typeset.

    Lab 44: The if/else Construct and the let Command.

    Lab 45: The case Statement.

    Lab 46: The select Loop.

    Lab 47: Autoloading Functions.

13. The Interactive Bash Shell.

    Introduction.

    The Environment.

    The Command Line.

    Job Control.

    Command-Line Shortcuts.

    Aliases.

    Manipulating the Directory Stack.

    Metacharacters (Wildcards).

    Filename Substitution (Globbing).

    Variables.

    Quoting.

    Command Substitution.

    Arithmetic Expansion.

    Order of Expansion.

    Arrays.

    Functions.

    Standard I/O and Redirection.

    Pipes.

    Shell Invocation Options.

    Shell Built-In Commands.

    Lab 48: bash Shell--Getting Started.

    Lab 49: Job Control.

    Lab 50: Command Completion, History, and Aliases.

    Lab 51: Shell Metacharacters.

    Lab 52: Redirection.

    Lab 53: Variables.

14. Programming the Bash Shell.

    Introduction.

    Reading User Input.

    Arithmetic.

    Positional Parameters and Command-Line Arguments.

    Conditional Constructs and Flow Control.

    Looping Commands.

    Functions.

    Trapping Signals.

    Debugging.

    The Command Line.

    bash Options.

    Shell Built-In Commands.

    Lab 54: bash Shell--First Script.

    Lab 55: Command-Line Arguments.

    Lab 56: Getting User Input.

    Lab 57: Conditional Statements.

    Lab 58: Conditionals and File Testing.

    Lab 59: The case Statement.

    Lab 60: Loops.

    Lab 61: Functions.

15. Debugging Shell Scripts.

    Introduction.

    Style Issues.

    Types of Errors.

    Probable Causes for Syntax Errors.

    Tracing with Shell Options and the set Command.

    Summary.

16. The System Administrator and the Shell.

    Introduction.

    The Superuser.

    Becoming a Superuser with the su Command.

    Boot Scripts.

    Summary.

A. Useful UNIX/Linux Utilities for Shell Programmers.

B. Comparison of the Shells.

    The Shells Compared.

    tcsh versus csh.

    bash versus sh.

Index.

Promotional Information

Best-selling author Ellie Quigley is back!The fourth edition of Unix Shells by Example has some new features but it'sgoal remains the same: Take the entry-level programmer though thefundamentals of programming the bourne, bash, korn, and C shells.In this thorough revision, readers will enjoy updates that fall into three newchapters:1) The innovative "Shell Programming Quick-Start" chapter designed to getexperienced programmers (but not shell programmers) writing working anduseful code after only 15 pages.2) A chapter on debugging shell scripts. Previous editions of the book lacked adebugging chapter, and in teaching her classes Quigley realized the importanceof teaching proper debugging techniques at the very beginning, whenprogrammers are learning the language.3) Shell Programming for System Administrator's chapter: walks the readersthrough important shell scripts found on Unix and Linux systems.In addition, Quigley's coverage of the key Unix utilities: awk, sed, and grep hasbeen updated to cover the GNU/Linux versions of these, also important forreaders working on Linux systems.Finally, the chapter covering the Linux bash shell has been greatly enhancedand updated to the latest version of bash (2.05). Again, this is really importantfor Linux users.

About the Author

Ellie Quigley is the author of many best-selling books on Linux shells, UNIX shells, and Perl programming. A leading instructor and trainer, her courses in Perl and UNIX shell programming at the University of California Santa Cruz Extension Program, Sun Microsystems, and numerous corporations and colleges have become legendary throughout Silicon Valley. Quigley’s company, Learning Enterprises, Inc., offers on-site training in Unix, Perl, C/C++, Java, and system administration.


Ask a Question About this Product More...
 
Look for similar items by category
Home » Books » Computers » General
This title is unavailable for purchase as none of our regular suppliers have stock available. If you are the publisher, author or distributor for this item, please visit this link.

Back to top