Pro Bash
eBook - ePub

Pro Bash

Learn to Script and Program the GNU/Linux Shell

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Pro Bash

Learn to Script and Program the GNU/Linux Shell

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

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
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 use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
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

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