You are not signed in. Sign in.


Category IT Books

The UNIX Programming Environment » (1st)

Book cover image of The UNIX Programming Environment by Brian W. Kernighan

Authors: Brian W. Kernighan, Rob Pike
ISBN-13: 9780139376818, ISBN-10: 013937681X
Format: Paperback
Publisher: Prentice Hall Professional Technical Reference
Date Published: January 1984
Edition: 1st

Find Best Prices for This Book »

Author Biography: Brian W. Kernighan

Book Synopsis

Designed for first-time and experienced users, this book describes the UNIX® programming environment and philosophy in detail. Readers will gain an understanding not only of how to use the system, its components, and the programs, but also how these fit into the total environment.


Both novice and experienced users will appreciate this work. It provides an understanding not only of how to use the system, its components, and programs, but also how they fit into the total UNIX environment. Annotation c. Book News, Inc., Portland, OR (

Table of Contents

1.UNIX for Beginners1
1.1Getting started2
1.2Day-to-day use: files and common commands11
1.3More about files: directories21
1.4The shell26
1.5The rest of the UNIX system38
2.The File System41
2.1The basics of files41
2.2What's in a file?46
2.3Directories and filenames48
2.6The directory hierarchy63
3.Using the Shell71
3.1Command line structure71
3.3Creating new commands80
3.4Command arguments and parameters82
3.5Program output as arguments86
3.6Shell variables88
3.7More on I/O redirection92
3.8Looping in shell programs94
3.9bundle: putting it all together97
3.10Why a programmable shell?99
4.1The grep family102
4.2Other filters106
4.3The stream editor sed108
4.4The awk pattern scanning and processing language114
4.5Good files and good filters130
5.Shell Programming133
5.1Customizing the cal command133
5.2Which command is which?138
5.3While and until loops: watching for things144
5.4Traps: catching interrupts150
5.5Replacing a file: overwrite152
5.6Zap: killing proceses by name156
5.7The pick command: blanks vs. arguments159
5.8The news command: community service messages162
5.9Get and put: tracking file changes165
5.10A look back169
6.Programming with Standard I/O171
6.1Standard input and output: vis172
6.2Program arguments: vis version 2174
6.3File access: vis version 3176
6.4A screen-at-a-time printer: p180
6.5An example: pick186
6.6On bugs and debugging187
6.7An example: zap190
6.8An interactive file comparison program: idiff192
6.9Accessing the environment199
7.UNIX System Calls201
7.1Low-level I/O201
7.2File system: directories208
7.3File system: inodes214
7.5Signals and interrupts225
8.Program Development233
8.1Stage 1: A four-function calculator234
8.2Stage 2: Variables and error recovery242
8.3Stage 3: Arbitrary variable names; built-in functions245
8.4Stage 4: Compilation into a machine258
8.5Stage 5: Control flow and relational operators266
8.6Stage 6: Functions and procedures; input/output273
8.7Performance evaluation284
8.8A look back286
9.Document Preparation289
9.1The ms macro package290
9.2The troff level297
9.3The tbl and eqn preprocessors301
9.4The manual page308
9.5Other document preparation tools313
Appendix 1Editor Summary319
Appendix 2hoc Manual329
Appendix 3hoc Listing335




No reviews. Submit yours!

Review this book.

We would like to know what you think about this book and publish your thoughts here! (top)

Your Review

  1. You may optionally give a title for this comment.

  2. Worst to best, 1 to 5, what would you rate this one?

  3. The actual content of your comment. No HTML nor whatsoever allowed.

  4. The author of this comment.

  5. 7 + 4 = ?

    Please answer the question by common sense.