YoVDO

Learning Bash Scripting

Offered By: LinkedIn Learning

Tags

Bash Courses Control Structures Courses Text Editing Courses Shell Scripting Courses Bash Scripting Courses

Course Description

Overview

Explore basic concepts and specifics of shell administration with Bash.

Syllabus

Introduction
  • Learning Bash scripting
  • Introducing GitHub Codespaces
  • Using GitHub Codespaces with this course
  • Using Bash in GitHub Codespaces
1. Using Bash
  • What's Bash?
  • Pipes and redirections
  • Bash built-ins and other commands
  • Brackets and braces in Bash
  • Bash expansions and substitutions
  • Brace expansion
  • Parameter expansion
  • Command substitution
  • Arithmetic expansion
2. Programming with Bash
  • Understanding Bash script syntax
  • Choosing a text editor for Bash scripting
  • Displaying text with "echo"
  • Working with variables
  • Working with numbers
  • Comparing values with test
  • Comparing values with extended test
  • Formatting and styling text output
  • Formatting output with printf
  • Working with arrays
  • Challenge: Make a script that generates a system report
  • Solution: Make a script that generates a system report
3. Bash Control Structures
  • Conditional statements with the "if" keyword
  • Working with "while" and "until" loops
  • Introducing "for" loops
  • Selecting behavior using "case"
  • Using functions
  • Reading and writing text files
  • Challenge: Build a script using control structures
  • Solution: Build a script using control structures
4. Interacting with the User
  • Working with arguments
  • Working with options
  • Getting input during execution
  • Ensuring a response
  • Challenge: Make a script that uses input
  • Solution: Make a script that uses input
5. Bash in the Real World
  • Troubleshooting
  • Ensuring script portability
Conclusion
  • Next steps

Taught by

Scott Simpson

Related Courses

Initiation à la programmation (en Java)
École Polytechnique Fédérale de Lausanne via Coursera
Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera
計算機程式設計 (Computer Programming)
National Taiwan University via Coursera
Code Yourself! An Introduction to Programming
University of Edinburgh via Coursera
¡A Programar! Una introducción a la programación
University of Edinburgh via Coursera