BSBT6110: Week 4

Stacks Image 3329
Linux Bash Scripting

Week 4 Day 1: Tuesday (Sept 20, 2016)

Learn the basic of Bash Shell Scripting

Stacks Image 3367

Lynda.com Assignment

Course: Up and Running with Bash Scripting

  • Introduction
    • Welcome
    • What you need to know before continuing
    • Using the exercise files
  • "1". Working with the Command Line
    • What's Bash?
    • Reviewing common Bash commands
    • Tilde and brace expansion
    • Changing where things go with pipes and redirection
    • Manipulating output with grep, awk, and cut
    • Understanding Bash script syntax
    • Creating a basic Bash script
  • "2". Building Bash Scripts
    • Displaying text with echo
    • Working with variables
    • Command substitution
    • Working with numbers
    • Comparing values
    • Working with strings
    • Coloring and styling text
    • Exploring some handy helpers: date and printf
    • Working with arrays
    • Reading and writing text files
    • Using here documents
    • Challenge: Make a script that generates a system report
    • Solution: Make a script that generates a system report

Week 4 Day 2: Thursday (Sept 22, 2016)

Learn the basic of Bash Shell Scripting

Stacks Image 3434

Lynda.com Assignment

Course: Up and Running with Bash Scripting

  • "3". Control Structures
    • Testing truth conditions with the if keyword
    • Working with while and until loops
    • Introducing for loops
    • Selecting behavior using case
    • Using functions
  • "4". Interacting with the User
    • Working with arguments
    • Working with flags
    • Getting input during execution
    • Ensuring a response
    • Challenge: Make a script that uses input
    • Solution: Make a script that uses input
    • Conclusion