did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780596005955

Classic Shell Scripting

by
  • ISBN13:

    9780596005955

  • ISBN10:

    0596005954

  • Format: Paperback
  • Copyright: 2005-06-01
  • Publisher: Oreilly & Associates Inc

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $49.99 Save up to $14.00
  • Buy Used
    $37.49
    Add to Cart Free Shipping Icon Free Shipping

    USUALLY SHIPS IN 2-4 BUSINESS DAYS

Supplemental Materials

What is included with this book?

Summary

Writing shell scripts requires more than just a knowledge of the shell language, it also requires familiarity with the individual Unix programs: why each one is there, how to use them by themselves, and in combination with the other programs. The authors are intimately familiar with the tips and tricks that can be used to create excellent scripts, as well as the traps that can make your best effort a bad shell script. With Classic Shell Scripting you'll avoid hours of wasted effort. You'll learn not only write useful shell scripts, but how to do it properly and portably. The ability to program and customize the shell quickly, reliably, and portably to get the best out of any individual system is an important skill for anyone operating and maintaining Unix or Linux systems. Classic Shell Scripting gives you everything you need to master these essential skills

Author Biography

Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has worked with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. He has been a heavy AWK user since 1987, when he became involved with gawk, the GNU project's version of AWK. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for AWK. He is currently the maintainer of gawk and its documentation. He is also coauthor of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel.

Nelson Beebe is a long time Unix user and system administrator, and has helped for years on Usenet newsgroups.

Table of Contents

Forewordp. ix
Prefacep. xi
Backgroundp. 1
Unix Historyp. 1
Software Tools Principlesp. 4
Summaryp. 6
Getting Startedp. 8
Scripting Languages Versus Compiled Languagesp. 8
Why Use a Shell Script?p. 9
A Simple Scriptp. 9
Self-Contained Scripts: The #! First Linep. 10
Basic Shell Constructsp. 12
Accessing Shell Script Argumentsp. 23
Simple Execution Tracingp. 24
Internationalization and Localizationp. 25
Summaryp. 28
Searching and Substitutionsp. 30
Searching for Textp. 30
Regular Expressionsp. 31
Working with Fieldsp. 56
Summaryp. 65
Text Processing Toolsp. 67
Sorting Textp. 67
Removing Duplicatesp. 75
Reformatting Paragraphsp. 76
Counting Lines, Words, and Charactersp. 77
Printingp. 78
Extracting the First and Last Linesp. 83
Summaryp. 86
Pipelines Can Do Amazing Thingsp. 87
Extracting Data from Structured Text Filesp. 87
Structured Data for the Webp. 94
Cheating at Word Puzzlesp. 100
Word Listsp. 102
Tag Listsp. 105
Summaryp. 107
Variables, Making Decisions, and Repeating Actionsp. 109
Variables and Arithmeticp. 109
Exit Statusesp. 120
The case Statementp. 129
Loopingp. 130
Functionsp. 135
Summaryp. 138
Input and Output, Files, and Command Evaluationp. 140
Standard Input, Output, and Errorp. 140
Reading Lines with readp. 140
More About Redirectionsp. 143
The Full Story on printfp. 147
Tilde Expansion and Wildcardsp. 152
Command Substitutionp. 155
Quotingp. 161
Evaluation Order and evalp. 162
Built-in Commandsp. 168
Summaryp. 175
Production Scriptsp. 177
Path Searchingp. 177
Automating Software Buildsp. 192
Summaryp. 222
Enough awk to Be Dangerousp. 223
The awk Command Linep. 224
The awk Programming Modelp. 225
Program Elementsp. 226
Records and Fieldsp. 236
Patterns and Actionsp. 238
One-Line Programs in awkp. 240
Statementsp. 244
User-Defined Functionsp. 252
String Functionsp. 255
Numeric Functionsp. 264
Summaryp. 266
Working with Filesp. 267
Listing Filesp. 267
Updating Modification Times with touchp. 273
Creating and Using Temporary Filesp. 274
Finding Filesp. 279
Running Commands: xargsp. 293
Filesystem Space Informationp. 295
Comparing Filesp. 299
Summaryp. 307
Extend Example: Merging User Databasesp. 308
The Problemp. 308
The Password Filesp. 309
Merging Password Filesp. 310
Changing File Ownershipp. 317
Other Real-World Issuesp. 321
Summaryp. 323
Spellcheckingp. 325
The spell Programp. 325
The Original Unix Spellchecking Prototypep. 326
Improving ispell and aspellp. 327
A Spellchecker in awkp. 331
Summaryp. 350
Processesp. 352
Process Creationp. 353
Process Listingp. 354
Process Control and Deletionp. 360
Process System-Call Tracingp. 368
Process Accountingp. 372
Delayed Scheduling of Processesp. 373
The /proc Filesystemp. 378
Summaryp. 379
Shell Portability Issues and Extensionsp. 381
Gotchasp. 381
The bash shopt Commandp. 385
Common Extensionsp. 389
Download Informationp. 402
Other Extended Bourne-Style Shellsp. 405
Shell Versionsp. 405
Shell Initialization and Terminationp. 406
Summaryp. 412
Secure Shell Scripts: Getting Startedp. 413
Tips for Secure Shell Scriptsp. 413
Restricted Shellp. 416
Trojan Horsesp. 418
Setuid Shell Scripts: A Bad Ideap. 419
ksh93 and Privileged Modep. 421
Summaryp. 422
Writing Manual Pagesp. 423
Files and Filesystemsp. 437
Important Unix Commandsp. 473
Bibliographyp. 478
Glossaryp. 484
Indexp. 509
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program