GNU Bash Scripting - Course Topics
- Common shell programs
- General shell functions
- Shell types
- Advantages of the Bourne Again Shell
- Bash is the GNU shell
- Features only found in bash
- Executing commands
- General
- Shell built-in commands
- Executing programs from a script
- Building blocks
- Shell building blocks
- Developing good scripts
- Properties of good scripts
- Structure
- Terminology
- A word on order and logic
- An example Bash script
- Creating and running a script
- Writing and naming
- Executing the script
- Script basics
- Debugging Bash scripts
- Debugging on the entire script
- Debugging on part(s) of the script
- Shell initialization files
- System-wide configuration files
- Individual user configuration files
- Changing shell configuration files
- Variables
- Types of variables
- Creating variables
- Exporting variables
- Reserved variables
- Special parameters
- Script recycling with variables
- Quoting characters
- Escape characters
- Single quotes
- Double quotes
- ANSI-C quoting
- Locales
- Shell expansion
- General
- Brace expansion
- Tilde expansion
- Shell parameter and variable expansion
- Command substitution
- Arithmetic expansion
- Process substitution
- Word splitting
- File name expansion
- Aliases
- What are aliases?
- Creating and removing aliases
- More Bash options
- Displaying options
- Changing options
- Regular expressions
- What are regular expressions?
- Regular expression metacharacters
- Basic versus extended regular expressions
- Examples using grep
- What is grep?
- Grep and regular expressions
- Pattern matching using Bash features
- Character ranges
- Introduction
- What is sed?
- sed commands
- Interactive editing
- Printing lines containing a pattern
- Deleting lines of input containing a pattern
- Ranges of lines
- Find and replace with sed
- Non-interactive editing
- Reading sed commands from a file
- Writing output files
- Getting started with gawk
- What is gawk?
- Gawk commands
- The print program
- Printing selected fields
- Formatting fields
- The print command and regular expressions
- Special patterns
- Gawk scripts
- Gawk variables
- The input field separator
- The output separators
- The number of records
- User defined variables
- More examples
- The printf program
- Introduction to if
- General
- Simple applications of if
- More advanced if usage
- if/then/else constructs
- if/then/elif/else constructs
- Nested if statements
- Bash Guide for Beginners
- Boolean operations
- Using the exit statement and if
- Using case statements
- Initscript example
- Interactive or not?
- Using the echo built-in command
- Catching user input
- Using the read built-in command
- Prompting for user input
- Redirection and file descriptors
- File input and output
- The for loop
- How does it work?
- Examples
- The while loop
- What is it?
- Examples
- The until loop
- What is it?
- Example
- I/O redirection and loops
- Input redirection
- Output redirection
- Break and continue
- The break built-in
- The continue built-in
- Examples
- Making menus with the select built-in
- General
- Submenus
- The shift built-in
- What does it do?
- Examples
- General assignment of values
- Using the declare built-in
- Constants
- Array variables
- Creating arrays
- Dereferencing the variables in an array
- Deleting array variables
- Examples of arrays
- Operations on variables
- Arithmetic on variables
- Length of a variable
- Transformations of variables
- Introduction
- What are functions?
- Function syntax
- Positional parameters in functions
- Displaying functions
- Examples of functions in scripts
- Recycling
- Setting the path
- Remote backups
- Introduction
- Usage of signals with kill
- Traps
- General How Bash interprets traps
- More examples