Introduction to Bash Scripting

Introduction to Bash Scripting

Shyam Gupta
Buy on Leanpub

Table of Contents

Introduction to Bash Scripting

  • Chapter 1: Hello World!
    • Executing the script
    • umask
    • Adding file to $PATH
    • Positional Parameters
  • Chapter 2: Variables
    • Quotations
    • Setting Variables
    • Specifying Default Values
    • Reading Variables
    • Built-in Variables
    • Environment Variables
    • declare Command
  • Chapter 3: Prompting for input
  • Chapter 4: Heredoc
  • Chapter 5: Comparing Values
    • Comparing Numerical Values
    • Comparing Strings
    • Extended Test
  • Chapter 6: Working with numbers
  • Chapter 7: Functions
    • Declaring Functions
    • Function Parameters
    • Return Values
  • Chapter 8: Loops
    • for Loop
    • while Loop
  • Chapter 9: Conditional Logic
    • if - else Statement
    • Avoiding if-else Statements
  • Chapter 10: Expansions and Substitutions
    • Tilde Expansion
    • Brace Expansion
    • Parameter Expansion
    • Pattern Substitution
    • Command Substitution
  • Chapter 11: Formatting output with printf
    • Width Modifiers
    • Pricision Modifiers
  • Chapter 12: Arrays
    • Defining Arrays
    • Retrieving Values
    • Setting Values
    • Appending to an array
    • Length of an array
    • Looping through an array
    • Associative Arrays
  • Chapter 13: Case Statement
    • Syntax
    • Example
  • Chapter 14: Extracting Substrings
    • Using Bash Substring Expansion
    • Using IFS
    • Using cut
  • Chapter 15: Debugging Scripts
Introduction to Bash Scripting/overview

Introduction to Bash Scripting

course_overview

count_chapters
begin_reading
download
p_implied_book_part_name

Introduction to Bash Scripting15 chapters

Begin ›
  1. Chapter 1: Hello World!

  2. Chapter 2: Variables

  3. Chapter 3: Prompting for input

  4. Chapter 4: Heredoc

  5. Chapter 5: Comparing Values

  6. Chapter 6: Working with numbers

  7. Chapter 7: Functions

  8. Chapter 8: Loops

  9. Chapter 9: Conditional Logic

  10. Chapter 10: Expansions and Substitutions

  11. Chapter 11: Formatting output with printf

  12. Chapter 12: Arrays

  13. Chapter 13: Case Statement

  14. Chapter 14: Extracting Substrings

  15. Chapter 15: Debugging Scripts