shell_scripting.pdf

(18157 KB) Pobierz
Shell Scripting
expert recipeS for linux, BaSh, and More
introduction ............................................................ xxix
part
i
aBout the ingredientS
The History of Unix, GNU, and Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
chapter 1
Getting Started .................................................15
chapter 2
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
chapter 3
Wildcard Expansion ............................................67
chapter 4
Conditional Execution ..........................................83
chapter 5
Flow Control Using Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
chapter 6
Variables Continued . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
chapter 7
Functions and Libraries.........................................161
chapter 8
Arrays ....................................................... 199
chapter 9
Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
chapter 10
Choosing and Using Shells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
chapter 11
part i
i
recipeS for uSing and extending SySteM toolS
File Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
chapter 12
Text Manipulation............................................. 315
chapter 13
Tools for Systems Administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
chapter 14
part ii
i
recipeS for SySteMS adMiniStration
Shell Features ................................................409
chapter 15
Systems Administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
chapter 16
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
chapter 17
Data Storage and Retrieval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .471
chapter 18
Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
chapter 19
Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
chapter 20
Internationalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .517
chapter 21
Continues
part i
V
reference
appendix
Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
gloSSary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533
index..................................................................... 539
Shell Scripting
ExpErt rEcipEs for Linux, Bash, and MorE
Zgłoś jeśli naruszono regulamin