Introduction
Welcome
()
What you should know
()
Using the exercise files
()
1. Intro to Bash Scripting
Challenges: Scripts with exported variables, sourcing, and echo
()
Solutions: Scripts with exported variables, sourcing, and echo
()
Exploring the Bash documentation
()
Setting the script interpreter and permissions
()
Time commands and set variables
()
Bash startup
()
Sourcing and aliasing with bash
()
Displaying text with the echo command
()
2. Variables, Control Structures, and Arithmetic
Challenges: Using local variables in functions, loops, and arithmetic
()
Solutions: Using local variables in functions, loops, and arithmetic
()
The typeset and declare commands for variables
()
Looping with for/while sequences and reading input
()
Defining functions and using return and exit
()
Using file descriptors, file redirection, pipes, and here documents
()
Control-flow case statements and if-then-else with the test command
()
Using arithmetic operators
()
3. Using Filters and Parameter Expansion
Challenges: Looping, special variable operators, sed, and AWK
()
Solutions: Looping, special variable operators, sed, and AWK
()
Defining filters and using head, tail, and wc
()
Using sed and AWK for more powerful scripting
()
Positional parameters and operators with braces
()
4. Advanced Bash
Challenges: Debugging scripts using trap, eval, getopt, and coproc
()
Solutions: Debugging scripts using trap, eval, getopt, and coproc
()
Using the coproc command
()
Debugging scripts with -x and -u options
()
Signals and traps
()
Using the eval and getopt commands
()
Ex_Files_Linux_BashShell.zip
(21 KB)