+612 9045 4394
$7.95 Delivery per order to Australia and New Zealand
100% Australian owned
Over a hundred thousand in-stock titles ready to ship
Classic Shell Scripting : OREILLY - Arnold Robbins

Classic Shell Scripting


Paperback Published: 24th May 2005
ISBN: 9780596005955
Number Of Pages: 558

Share This Book:


RRP $80.00
Ships in 15 business days

Earn 96 Qantas Points
on this Book

Shell scripting skills never go out of style. It's the shell that unlocks the real potential of Unix. Shell scripting is essential for Unix users and system administrators-a way to quickly harness and customize the full power of any Unix system. With shell scripts, you can combine the fundamental Unix text and file processing commands to crunch data and automate repetitive tasks. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards. "Classic Shell Scripting" is written to help you reliably navigate these tricky waters.

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.

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.

ISBN: 9780596005955
ISBN-10: 0596005954
Audience: Professional
Format: Paperback
Language: English
Number Of Pages: 558
Published: 24th May 2005
Publisher: John Wiley & Sons Publishers
Country of Publication: US
Dimensions (cm): 23.3 x 18.2  x 2.9
Weight (kg): 0.88

Earn 96 Qantas Points
on this Book