Episode

What are Functions in Bash? (Part 17 of 20) | Bash for Beginners

with Gwyneth Peña-Siguenza, Josh Duffney

Welcome to the Bash for Beginners Series where you will learn the basics of Bash scripting. In this video, Gwyn explains what functions in bash are, how to declare on in a bash script, variable scopes, and how to pass arguments to a function.

GitHub - What are functions

https://aka.ms/bashforbeginners

Chapters

  • 00:00 - What are Functions
  • 01:20 - How to define a Function
  • 02:20 - How to use variable scopes
  • 03:31 - Using a conditional statement in a Function
  • 04:00 - Using parameters in a Function
  • 05:35 - Running our script

Connect

Bash