Pro Bash
eBook - ePub

Pro Bash

Learn to Script and Program the GNU/Linux Shell

  1. English
  2. ePUB (mobile friendly)
  3. Only available on web
eBook - ePub

Pro Bash

Learn to Script and Program the GNU/Linux Shell

Book details
Table of contents
Citations

About This Book

Learn how to effectively utilize the Bash shell in your programming. This refreshed and expanded third edition has been updated to Bash 5.2, and many scripts have been rewritten to make them more idiomatically Bash, taking better advantage of features specific to Bash. It is easy to read, understand, and will teach you how to get to grips with Bash programming without drowning you in pages and pages of syntax.

Using this book you will be able to use the shell efficiently, make scripts run faster using expansion and external commands, and understand how to overcome many common mistakes that cause scripts to fail. This book is perfect for all beginning Linux and Unix system administrators who want to be in full control of their systems, and really get to grips with Bash programming.

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 programs through standard programming techniques.

What You'll Learn

  • Use the Bash shell to write utilities and accomplish most programming tasks
  • Replace many external commands with shell parameter expansion making scripts very fast
  • Avoid many common mistakes that cause scripts to fail
  • See how Bash's read line and history libraries can save typing when getting user input
  • Build shell scripts that get information from the Web

Who This Book Is For

Developers, programmers, and open source enthusiasts who want to write scripts using Bash on multiple platforms

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Pro Bash by Jayant Varma in PDF and/or ePUB format, as well as other popular books in Computer Science & Open Source Programming. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Apress
Year
2023
ISBN
9781484295885
Edition
3

Table of contents

  1. Cover
  2. Front Matter
  3. 1. Hello, World: Your First Shell Program
  4. 2. Input, Output, and Throughput
  5. 3. Looping and Branching
  6. 4. Command-Line Parsing and Expansion
  7. 5. Parameters and Variables
  8. 6. Shell Functions
  9. 7. String Manipulation
  10. 8. File Operations and Commands
  11. 9. Reserved Words and Built-In Commands
  12. 10. Writing Bug-Free Scripts and Debugging the Rest
  13. 11. Programming for the Command Line
  14. 12. Runtime Configuration
  15. 13. Data Processing
  16. 14. Scripting the Screen
  17. 15. Entry-Level Programming
  18. Back Matter