Linux and UNIX Shell Programming

Front Cover
Addison-Wesley Professional, 2000 - Computers - 504 pages

This comprehensive book is a practical, easy-to-use guide to programming and using the Bourne shell for beginners and experienced users - the Bourne shell is the standard shell for UNIX, and is also fully backward compatible to the Linux BASH shell. This book will fully illustrate the ability of the shell to unlock the real potential of UNIX and Linux, and aims to get the reader up, running and creating robust shell scripts for real tasks and situations as quickly as possible - shell scripts that will work on any mainstream UNIX or Linux machine.

If you are new to UNIX and Linux or if you are a power user in waiting then this book is for you. Most shell programming books merely annotate manual pages and syntax, but in this book users of all abilities will find plenty of practical working examples - all of which are available as full code script via an ftp site - as well as a host of tips, tricks and code one-liners, that will save you time on a day-to-day basis. The book is organized into self-contained chapters on individual topics for ease of reference.

 

Contents

File security and permissions
3
Using find and xargs
21
Running commands unattended
32
Shell input and output
48
Command execution order
64
Introducing regular expressions
71
The grep family
82
Introducing awk
96
Control flow structures
237
Shell functions
291
Passing parameters to scripts
320
Creating screen output
335
Creating screen input
356
Debugging scripts
383
Going further with here documents
395
Shell utilities
405

Using sed
131
Merge and divide
154
Using tr
176
The login environment
187
Environment and shell variables
197
Quoting
217
Introduction to shell scripts
225
A small collection of scripts
426
Run level scripts
441
cgi scripts
451
Appendix A ASCII chart
483
Index
501
Copyright

Other editions - View all

Common terms and phrases

Bibliographic information