Cover image for Korn shell programming by example
Title:
Korn shell programming by example
Author:
O'Brien, Dennis, 1947-
Personal Author:
Publication Information:
Indianapolis : Que, [2001]

©2001
Physical Description:
xiv, 431 pages : illustrations ; 23 cm
General Note:
On cover: "Dennis O'Brien with David Pitts."
Language:
English
Added Author:
ISBN:
9780789724656
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.73.K67 O33 2001 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

This title focuses on the Korn shell, the shell used by Unix administrators, but it also covers other shells. It has a tutorial approach to teach how to programme in Linux/Unix. Specific concepts of programming are explained with the use of examples.


Table of Contents

Introductionp. 1
Assumptions About the Readerp. 1
What This Book Will Give Youp. 2
What This Book Will Not Give Youp. 2
Conventionsp. 2
1 The Environmentp. 5
What Is a Shell?p. 6
What Is a Shell Script?p. 7
#!/bin/ksh Explainedp. 7
Coming Full Circle--Back to umaskp. 18
#--Comments Explainedp. 19
The .profile Scriptp. 20
Aliasesp. 22
Ksh Environment Optionsp. 23
Variablesp. 24
Environment Filep. 30
History File and Repetitionp. 33
2 Process Controlp. 39
How to Run a Scriptp. 40
Jobs and Processesp. 42
Signalsp. 52
nohup Explainedp. 62
Scheduling Jobsp. 64
3 Variablesp. 73
Case Sensitivityp. 74
Valid Charactersp. 74
Scalarp. 75
Arrayp. 81
Read-Onlyp. 84
Unsettingp. 84
4 Regular Expressionsp. 87
Regular Expressions Versus Wildcardsp. 88
Character Classesp. 90
Pattern Matchingp. 92
Metacharactersp. 96
Back Referencesp. 97
5 Quotingp. 101
Escape Characterp. 102
Aggregate Quoting Optionsp. 104
Line Continuationp. 106
Command Substitution--Two Waysp. 107
Parameter Expansionp. 108
Arithmetic Expansionp. 113
6 Flow Controlp. 117
If Testp. 118
Compound If Testsp. 126
Case Conditionalsp. 128
Looping Constructsp. 129
Loop-Related Commandsp. 137
Backup Loop Examplep. 137
7 Data Manipulationp. 143
Functionsp. 144
Function Programming Detailsp. 150
Mathp. 160
Filtersp. 165
Testing Filesp. 169
8 Information Passingp. 179
Command-Line Argumentsp. 180
User Inputp. 185
Redirectionp. 194
Coprocessp. 197
9 File and Directory Manipulationp. 205
Pathsp. 206
Descriptorsp. 209
Special Filesp. 211
Linksp. 212
Directoriesp. 216
Hidden Filesp. 218
Attributesp. 219
Permissionsp. 222
Acceptable Filenamesp. 223
Accessing Filesp. 224
Filteringp. 229
Using Temporary Filesp. 239
10 Output Controlp. 243
Echoing Outputp. 244
Printfp. 248
Output Redirectionp. 252
Multiple Output Redirectionp. 255
Pipes Versus Redirectionp. 255
Stderr Redirectionp. 256
Here Documentsp. 257
11 Diagnosticsp. 261
Syntax Checkingp. 262
Command Interpretation Sequencep. 264
Verbose Modep. 265
Execution Tracep. 267
Debugging Hooksp. 270
12 Trapsp. 275
Defining and Using Trapsp. 276
Documentation Supportp. 281
Self-Help Scriptsp. 282
Bulletproofingp. 282
13 Pulling It All Togetherp. 289
The sys_check Scriptp. 290
First sys_check Runp. 292
Second sys_check Runp. 305
Numbered Version of sys_check Scriptp. 308
A Useful Commandsp. 321
aliasp. 322
autoloadp. 324
bgp. 325
breakp. 326
builtinp. 327
casep. 328
catp. 329
cdp. 330
chmodp. 331
commandp. 332
continuep. 333
cpp. 335
cutp. 336
datep. 337
disownp. 338
echop. 339
edp. 339
evalp. 340
execp. 341
exitp. 342
exportp. 343
falsep. 345
fcp. 346
fgp. 347
findp. 348
floatp. 350
forp. 350
functionp. 351
getconfp. 352
getoptsp. 353
grepp. 353
hashp. 354
histp. 355
historyp. 356
ifp. 357
integerp. 358
jobsp. 359
killp. 359
[p. 360
letp. 361
lnp. 362
mvp. 363
newgrpp. 363
nohupp. 364
:p. 364
pastep. 365
printp. 366
printfp. 366
pwdp. 367
rp. 367
readp. 369
readonlyp. 369
returnp. 370
rmp. 371
rmdirp. 372
scriptp. 372
selectp. 375
setp. 375
shiftp. 376
sleepp. 377
sortp. 378
stopp. 379
tailp. 380
teep. 381
testp. 382
timep. 382
touchp. 383
trp. 384
trapp. 384
truep. 385
ttyp. 386
typep. 386
typesetp. 387
ulimitp. 389
umaskp. 390
unaliasp. 390
uniqp. 391
unsetp. 393
untilp. 394
waitp. 394
wcp. 395
whencep. 396
whilep. 396
whop. 397
B vi Tutorialp. 401
Where vi Came Fromp. 402
Starting an Edit Sessionp. 403
Modes of Operationp. 404
Last-Line Modep. 406
Exiting from the Editorp. 406
Moving the Cursorp. 407
Deletingp. 408
Cutting and Pastingp. 409
Using Multiple Buffersp. 409
Searching and Replacingp. 410
Changing vi Environment Settingsp. 412
Edit Session Recoveryp. 415
Miscellaneous Commandsp. 416
Indexp. 415

Google Preview