Pro Bash Programming Scripting the GNULinux Shell

Free Download

Authors:

Series: Expert's Voice in Linux

ISBN: 1430219971, 978-1-4302-1997-2

Size: 1 MB (1505268 bytes)

Pages: 259/259

File format:

Language:

Publishing Year:

Category:

Chris Johnson1430219971, 978-1-4302-1997-2


Table of contents :
Apress – Pro Bash Programming Scripting the GNULinux Shell (10-2009) (ATTiCA)……Page 1
Books for Professionals……Page 2
Contents at a Glance……Page 6
Contents……Page 8
About the Author……Page 19
About the Technical Reviewer……Page 20
Introduction……Page 22
The Code……Page 26
The File……Page 27
Choosing and Using a Text Editor……Page 28
Summary……Page 30
Parameters and Variables……Page 32
Arguments and Options……Page 33
printf: Formatting and Printing Data……Page 34
Standard Input/Output Streams and Redirection……Page 38
Reading Input……Page 40
Summary……Page 41
Testing an Expression……Page 44
Lists……Page 47
Looping……Page 50
Summary……Page 52
Command-Line Parsing and Expansion……Page 54
Quoting……Page 55
Brace Expansion……Page 56
Tilde Expansion……Page 57
Parameter and Variable Expansion……Page 58
Command Substitution……Page 60
Word Splitting……Page 61
Process Substitution……Page 62
Parsing Options……Page 63
Summary……Page 66
The Scope of a Variable: Can You See It from Here?……Page 68
Shell Variables……Page 69
Parameter Expansion……Page 71
Positional Parameters……Page 78
Arrays……Page 79
Summary……Page 81
Definition Syntax……Page 84
Compound Commands……Page 86
Getting Results……Page 87
Sample Script……Page 89
Summary……Page 91
Concatenation……Page 92
Processing Character by Character……Page 94
Case Conversion……Page 95
Comparing Contents Without Regard to Case……Page 97
Check for Valid Variable Name……Page 98
Overlay……Page 99
Summary……Page 100
Reading a File……Page 104
External Commands……Page 106
Regular Expressions……Page 110
File Name Expansion Options……Page 114
Summary……Page 119
help, Display Information About Builtin Commands……Page 122
time, Print Time Taken for Execution of a Command……Page 123
read, Read a Line from an Input Stream……Page 124
type, Display Information About Commands……Page 131
builtin, Execute a Builtin Command……Page 133
Summary……Page 135
Prevention Is Better Than Cure……Page 138
Debugging a Script……Page 145
Summary……Page 148
Manipulating the Directory Stack……Page 150
Filesystem Functions……Page 154
Miscellaneous Functions……Page 157
Managing Man Pages……Page 158
Games……Page 159
Defining Variables……Page 166
Menus……Page 167
Configuration Files……Page 168
Scripts with Several Names……Page 169
All Together Now……Page 171
Summary……Page 181
Arrays……Page 182
Data File Formats……Page 196
Summary……Page 201
Teletypewriter vs. Canvas……Page 204
Moving the Cursor……Page 206
Changing Rendition Modes and Colors……Page 207
Placing a Block of Text on the Screen……Page 208
Scrolling Text……Page 211
Rolling Dice……Page 212
Single-Key Entry……Page 216
History in Scripts……Page 222
Sanity Checking……Page 223
Form Entry……Page 224
Reading the Mouse……Page 225
Shell Variables……Page 230
Index……Page 246

Reviews

There are no reviews yet.

Be the first to review “Pro Bash Programming Scripting the GNULinux Shell”
Shopping Cart
Scroll to Top