Skip to main content
  • Book
  • © 2010

Pro Bash Programming

Scripting the Linux Shell

Apress
  • This book treats bash as a full programming language

  • First bash shell programming book to include full 4.0 coverage

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (15 chapters)

  1. Front Matter

    Pages i-xxii
  2. Hello, World! Your First Shell Program

    • Chris F. A. Johnson
    Pages 1-6
  3. Input, Output, and Throughput

    • Chris F. A. Johnson
    Pages 7-17
  4. Looping and Branching

    • Chris F. A. Johnson
    Pages 19-28
  5. Command-Line Parsing and Expansion

    • Chris F. A. Johnson
    Pages 29-41
  6. Parameters and Variables

    • Chris F. A. Johnson
    Pages 43-57
  7. Shell Functions

    • Chris F. A. Johnson
    Pages 59-66
  8. String Manipulation

    • Chris F. A. Johnson
    Pages 67-78
  9. File Operations and Commands

    • Chris F. A. Johnson
    Pages 79-95
  10. Reserved Words and Builtin Commands

    • Chris F. A. Johnson
    Pages 97-111
  11. Writing Bug-Free Scripts and Debugging the Rest

    • Chris F. A. Johnson
    Pages 113-123
  12. Programming for the Command Line

    • Chris F. A. Johnson
    Pages 125-140
  13. Runtime Configuration

    • Chris F. A. Johnson
    Pages 141-156
  14. Data Processing

    • Chris F. A. Johnson
    Pages 157-177
  15. Scripting the Screen

    • Chris F. A. Johnson
    Pages 179-189
  16. Entry-Level Programming

    • Chris F. A. Johnson
    Pages 191-204
  17. Back Matter

    Pages 205-230

About this book

The bash shell is a complete programming language, not merely a glue to combine external Linux commands. By taking full advantage of shell internals, shell programs can perform as snappily as utilities written in C or other compiled languages. And you will see how, without assuming Unix lore, you can write professional bash 4.0 programs through standard programming techniques.

  • Complete bash coverage
  • Teaches bash as a programming language
  • Helps you master bash 4.0 features

About the author

Chris F.A. Johnson was introduced to Unix in 1990 and learned shell scripting because there was no C compiler on the system. His first major project was a menu-driven, user-extensible database system with report generator. Chris uses the shell as his primary, general-purpose programming language, and his projects have included a member database, menuing system, and POP3 mail filtering and retrieval. Chris is the author of Shell Scripting Recipes: A Problem-Solution Approach (Apress, 2005). When not pushing shell scripting to the limit, he designs and codes web sites, teaches chess, and composes cryptic crosswords.

Bibliographic Information

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access