Bash Cookbook [unix shell programming]

Free Download

Authors:

Edition: 1

Series: Cookbooks O'Reilly

ISBN: 9780596526788, 0596526784

Size: 2 MB (1999734 bytes)

Pages: 620/620

File format:

Language:

Publishing Year:

Category:

Carl Albing, JP Vossen, Cameron Newham9780596526788, 0596526784

The key to mastering any Unix system, especially Linux and Mac OS X, is a thorough knowledge of shell scripting. Scripting is a way to harness and customize the power of any Unix system, and it’s an essential skill for any Unix users, including system administrators and professional OS X developers. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards.
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell — the bash shell — and cygwin or other popular Unix emulation packages. Packed full of useful scripts, along with examples that explain how to create better scripts, this new cookbook gives professionals and power users everything they need to automate routine tasks and enable them to truly manage their systems — rather than have their systems manage them.

Table of contents :
bash Cookbook……Page 1
Table of Contents……Page 3
Preface……Page 13
Who Should Read This Book……Page 14
GNU Software……Page 15
A Note About Code Examples……Page 16
A Note About Perl……Page 17
Conventions Used in This Book……Page 18
We’d Like to Hear from You……Page 19
Carl……Page 20
Cameron……Page 21
Beginning bash……Page 22
Why bash?……Page 23
The bash Shell……Page 24
Discussion……Page 25
See Also……Page 26
Discussion……Page 27
See Also……Page 28
Solution……Page 29
Discussion……Page 30
Discussion……Page 31
Discussion……Page 33
Solution……Page 34
Discussion……Page 35
Discussion……Page 36
Solution……Page 37
Solution……Page 38
See Also……Page 40
Solution……Page 41
See Also……Page 42
See Also……Page 43
Discussion……Page 44
Discussion……Page 45
Official documentation……Page 46
See Also……Page 48
Standard Output……Page 49
Discussion……Page 50
See Also……Page 51
Discussion……Page 52
Discussion……Page 53
Solution……Page 54
Discussion……Page 55
Solution……Page 56
See Also……Page 57
Solution……Page 58
See Also……Page 59
Solution……Page 60
See Also……Page 61
Problem……Page 62
Discussion……Page 63
Discussion……Page 64
Problem……Page 65
Discussion……Page 66
Discussion……Page 67
Solution……Page 68
Problem……Page 69
Discussion……Page 70
Problem……Page 71
See Also……Page 72
Discussion……Page 73
Solution……Page 74
See Also……Page 75
Discussion……Page 76
Discussion……Page 77
Problem……Page 78
Discussion……Page 79
Discussion……Page 80
Discussion……Page 81
Solution……Page 82
See Also……Page 84
Discussion……Page 85
Discussion……Page 86
See Also……Page 87
Discussion……Page 88
Problem……Page 90
Discussion……Page 91
Solution……Page 92
Solution……Page 93
See Also……Page 94
See Also……Page 95
Discussion……Page 96
Discussion……Page 97
Discussion……Page 98
Discussion……Page 99
See Also……Page 100
Basic Scripting: Shell Variables……Page 101
See Also……Page 103
Solution……Page 104
See Also……Page 105
Discussion……Page 106
Problem……Page 107
Discussion……Page 108
Discussion……Page 110
Solution……Page 111
Solution……Page 112
Discussion……Page 113
Discussion……Page 115
Solution……Page 117
See Also……Page 118
Discussion……Page 119
Discussion……Page 120
Discussion……Page 121
Solution……Page 122
Discussion……Page 123
Solution……Page 124
See Also……Page 125
Discussion……Page 126
Solution……Page 127
See Also……Page 128
Solution……Page 129
Discussion……Page 130
Solution……Page 132
Discussion……Page 133
Problem……Page 135
Discussion……Page 136
See Also……Page 137
Discussion……Page 138
Discussion……Page 139
Discussion……Page 140
Discussion……Page 142
Problem……Page 143
Discussion……Page 144
See Also……Page 146
Discussion……Page 147
Problem……Page 149
Discussion……Page 150
Discussion……Page 151
Solution……Page 152
Solution……Page 153
Discussion……Page 154
Solution……Page 155
Discussion……Page 156
See Also……Page 157
Solution……Page 158
Discussion……Page 159
Problem……Page 160
Discussion……Page 161
Discussion……Page 163
See Also……Page 164
Intermediate Shell Tools I……Page 165
Discussion……Page 166
See Also……Page 167
See Also……Page 168
See Also……Page 169
Solution……Page 170
See Also……Page 171
Discussion……Page 172
7.7 Searching with More Complex Patterns……Page 173
Discussion……Page 174
Solution……Page 175
See Also……Page 176
Discussion……Page 177
Discussion……Page 178
Discussion……Page 179
Solution……Page 180
Discussion……Page 181
Solution……Page 182
See Also……Page 183
Discussion……Page 184
See Also……Page 185
Solution……Page 186
Solution……Page 187
Solution……Page 188
Discussion……Page 189
See Also……Page 190
Discussion……Page 191
Discussion……Page 192
Solution……Page 193
Discussion……Page 194
Solution……Page 195
Solution……Page 196
Discussion……Page 197
Solution……Page 198
Solution……Page 199
Discussion……Page 200
Solution……Page 201
8.15 Doing More with less……Page 202
Discussion……Page 203
See Also……Page 204
Problem……Page 205
Discussion……Page 206
Solution……Page 207
Problem……Page 208
Problem……Page 209
Problem……Page 210
See Also……Page 211
Discussion……Page 212
Problem……Page 213
See Also……Page 214
Discussion……Page 215
Solution……Page 216
Discussion……Page 217
See Also……Page 219
Solution……Page 220
Solution……Page 221
Discussion……Page 222
Discussion……Page 223
Solution……Page 224
Discussion……Page 225
Solution……Page 226
Discussion……Page 227
Solution……Page 228
Discussion……Page 231
Solution……Page 232
See Also……Page 233
Solution……Page 234
Discussion……Page 235
See Also……Page 236
Working with Dates and Times……Page 237
Discussion……Page 238
Solution……Page 239
See Also……Page 240
Solution……Page 241
Discussion……Page 242
Solution……Page 243
Problem……Page 244
Problem……Page 245
Solution……Page 246
Discussion……Page 247
Solution……Page 248
Solution……Page 249
See Also……Page 250
Solution……Page 251
Discussion……Page 252
Problem……Page 253
Solution……Page 254
Discussion……Page 257
Problem……Page 258
Solution……Page 259
Discussion……Page 260
Solution……Page 263
Discussion……Page 264
Problem……Page 265
Solution……Page 266
Discussion……Page 267
See Also……Page 268
Problem……Page 269
Discussion……Page 270
Solution……Page 272
Discussion……Page 273
Discussion……Page 274
Discussion……Page 276
Solution……Page 277
Solution……Page 278
Discussion……Page 279
Discussion……Page 280
Solution……Page 281
Solution……Page 282
Solution……Page 283
See Also……Page 284
Solution……Page 285
Discussion……Page 286
Solution……Page 287
See Also……Page 288
Solution……Page 289
Discussion……Page 290
Discussion……Page 292
Solution……Page 294
Solution……Page 296
Solution……Page 298
Solution……Page 299
See Also……Page 300
Writing Secure Shell Scripts……Page 301
Discussion……Page 303
Solution……Page 304
Discussion……Page 305
Discussion……Page 306
See Also……Page 307
Discussion……Page 308
Discussion……Page 309
Solution……Page 310
Discussion……Page 311
Discussion……Page 312
Solution……Page 313
Discussion……Page 314
Solution……Page 317
See Also……Page 318
Discussion……Page 319
Solution……Page 320
Discussion……Page 321
14.16 Restricting Guest Users……Page 322
Discussion……Page 323
Solution……Page 324
See Also……Page 325
Solution……Page 326
See Also……Page 327
Discussion……Page 328
Solution……Page 329
Discussion……Page 335
See Also……Page 336
Solution……Page 337
Solution……Page 339
See Also……Page 340
Advanced Scripting……Page 341
Discussion……Page 342
Problem……Page 343
See Also……Page 344
Discussion……Page 345
See Also……Page 346
Discussion……Page 347
Solution……Page 348
See Also……Page 349
Discussion……Page 350
See Also……Page 352
Solution……Page 353
Discussion……Page 354
Solution……Page 355
Problem……Page 356
Solution……Page 357
Discussion……Page 359
Solution……Page 361
Discussion……Page 362
See Also……Page 363
Solution……Page 364
See Also……Page 365
Problem……Page 366
Solution……Page 367
Discussion……Page 368
Problem……Page 369
Solution……Page 370
Discussion……Page 371
See Also……Page 372
Configuring and Customizing bash……Page 373
Basic prompts……Page 374
Fancy prompts……Page 376
Discussion……Page 378
See Also……Page 381
Discussion……Page 382
Solution……Page 383
Discussion……Page 387
Solution……Page 388
Discussion……Page 389
Solution……Page 390
See Also……Page 391
Solution……Page 392
Discussion……Page 394
Solution……Page 395
Solution……Page 397
Solution……Page 398
Discussion……Page 399
Solution……Page 401
Solution……Page 402
Discussion……Page 403
Discussion……Page 404
Solution……Page 405
Discussion……Page 406
Solution……Page 410
Discussion……Page 412
Solution……Page 415
See Also……Page 418
Assumptions……Page 419
Criteria……Page 420
Solution……Page 421
See Also……Page 431
Discussion……Page 432
Discussion……Page 434
Discussion……Page 435
Solution……Page 436
Configuration……Page 437
Solution……Page 438
Solution……Page 439
See Also……Page 440
See Also……Page 441
See Also……Page 442
Problem……Page 443
Solution……Page 444
Discussion……Page 445
See Also……Page 446
Solution……Page 447
Discussion……Page 448
Solution……Page 449
Solution……Page 450
Discussion……Page 451
Solution……Page 453
Discussion……Page 454
Discussion……Page 455
Solution……Page 457
Discussion……Page 459
Solution……Page 460
Discussion……Page 461
See Also……Page 463
Solution……Page 464
Problem……Page 465
Discussion……Page 466
Solution……Page 467
Discussion……Page 468
Solution……Page 469
Discussion……Page 470
Solution……Page 471
Discussion……Page 472
See Also……Page 473
Problem……Page 474
Discussion……Page 475
Solution……Page 476
Discussion……Page 477
Solution……Page 478
Problem……Page 479
Problem……Page 480
Solution……Page 481
See Also……Page 482
Solution……Page 483
Solution……Page 484
See Also……Page 485
Discussion……Page 486
See Also……Page 487
Solution……Page 488
Problem……Page 489
Discussion……Page 490
Problem……Page 491
Discussion……Page 492
See Also……Page 494
Problem……Page 495
Discussion……Page 496
Solution……Page 497
Solution……Page 498
Discussion……Page 499
See Also……Page 500
Discussion……Page 501
See Also……Page 502
bash Invocation……Page 503
Prompt String Customizations……Page 504
ANSI Color Escape Sequences……Page 505
Built-in Commands and Reserved Words……Page 506
Built-in Shell Variables……Page 508
set Options……Page 512
shopt Options……Page 513
Adjusting Shell Behavior Using set, shopt, and Environment Variables……Page 515
Test Operators……Page 526
I/O Redirection……Page 527
echo Options and Escape Sequences……Page 529
printf……Page 530
Examples……Page 533
Date and Time String Formatting with strftime……Page 534
Pattern-Matching Characters……Page 535
tr Escape Sequences……Page 536
Readline Init File Syntax……Page 537
emacs Mode Commands……Page 539
vi Control Mode Commands……Page 541
Table of ASCII Values……Page 543
Startup-Files Directory Examples……Page 545
Command-Line Processing Steps……Page 553
Quoting……Page 556
eval……Page 557
Revision Control……Page 559
Cons……Page 560
Example……Page 561
See Also……Page 565
Cons……Page 566
Example……Page 567
RCS……Page 571
Example……Page 572
Workon Script……Page 576
See Also……Page 577
Change Tracking and Versions……Page 578
Accessing These Features……Page 579
Unpacking the Archive……Page 580
Documentation……Page 581
Configuring and Building bash……Page 582
Examples……Page 584
Reporting Bugs……Page 585
Index……Page 587

Reviews

There are no reviews yet.

Be the first to review “Bash Cookbook [unix shell programming]”
Shopping Cart
Scroll to Top