Unix Shells by Example - Softcover

Quigley, Ellie

 
9780134608662: Unix Shells by Example

Synopsis

Covers all three of the UNIX shells: C shell, Bourne shell, Korn shell. Covers the key UNIX file manipulation utilities: grep, sed, and awk and teaches through example.

"synopsis" may belong to another edition of this title.

Review

The second edition of UNIX Shells by Examples shows off basic commands and utilities in the three most popular UNIX shells--C, Bourne, and Korn--with side-by-side examples. The new edition of this book is sure to be a worthy reference for UNIX programmers for getting around their favorite shell.

The best thing in this new edition is that the author presents short, effective examples to using basic commands and utilities for each of the three major UNIX shells. This comparative approach means that you can use this book on different flavours of UNIX and even migrate scripts between different shells. For each shell, the author provides fundamentals, such as accessing profiles, command-line histories and shell programming. "Lab sections" let you develop your skills with short, hands-on exercises for each shell. As in the earlier edition, the author's short examples show you how to perform basic tasks quickly with common switches and options.

Other sections here cover three major UNIX utilities: grep (for searching), sed (for editing), and awk (for scripting and reporting). (The reference and tutorial on AWK programming is a notable feature here. There is also good coverage of regular expressions.)

Instead of hunting down information in countless man pages, this book will save you many valuable minutes everyday with its efficient format and comparative approach. This is a truly useful book that the beginning and intermediate UNIX user can turn to everyday. --Richard Dragan, amazon.com

Topics covered: C, Bourne, and Korn UNIX shells; grep, sed and awk utilities; regular expressions and shell programming.

From the Publisher

Table of contents
CONTENTS

(NOTE: Contains hands-on exercises for every topic, an appendix with detailed syntax listings, examples of many useful UNIX utilities, comparison charts, and much more.)

1. Introduction to UNIX Shells.

Definition and Function. System Startup and the Login Shell. Processes and the Shell. The Environment and Inheritance. Executing Commands From Scripts.

2. The UNIX Tool Box.

Regular Expressions. Combining Regular Expression Metacharacters.

3. The Grep Family.

The Grep Command. Grep Examples With Regular Expressions. Grep With Pipes. Grep With Options. Egrep (Extended Grep). Fixed Grep or Fast Grep.

4. The Streamlined Editor.

What Is Sed? How Does Sed Work? Addressing. Commands and Options. Error Messages and Exit Status. Sed Examples. Sed Scripting.

5. The Awk Utility: Awk As a UNIX Tool.

What Is Awk? Awk's Format. Formatting Output. Awk Commands From Within a File. Records and Fields. Patterns and Actions. Regular Expressions. Awk Commands in a Script File. Review.

6. The Awk Utility: Awk Programming Constructs.

Comparison Expressions. Review.

7. The Awk Utility: Awk Programming.

Variables. Redirection and Pipes. Pipes. Closing Files and Pipes. Review. Conditional Statements. Loops. Program Control Statements. Arrays. Awk Built-in Functions. Built-In Arithmetic Functions. User-Defined Functions (nawk). Review. Odds and Ends. Review.

8. Interactive Bourne Shell.

Start-Up. Programming With the Bourne Shell.

9. The C Shell.

The Interactive C Shell. Programming With the C Shell.

10. The Korn Shell.

The Interactive Korn Shell. Programming With the Korn Shell.

Appendix A: Useful UNIX Utilities for Shell Programmers. Appendix B: Comparison of the Three Shells. Appendix C: Steps for Quoting Correctly. Index.

"About this title" may belong to another edition of this title.