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.
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
Recommended resources
- Bash for Beginners GitHub Repository
- Quickstart for Bash in Azure Cloud Shell
- Learn to use Bash with the Azure CLI
- Create a Linux virtual machine in Azure
- Learn more about GitHub Codespaces free tier
Connect
- Gwyn Peña-Siguenza | YouTube
- Gwyn Peña-Siguenza | Twitter: @madebygps
- Josh Duffney | Twitter: @joshduffney
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.
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
Recommended resources
- Bash for Beginners GitHub Repository
- Quickstart for Bash in Azure Cloud Shell
- Learn to use Bash with the Azure CLI
- Create a Linux virtual machine in Azure
- Learn more about GitHub Codespaces free tier
Connect
- Gwyn Peña-Siguenza | YouTube
- Gwyn Peña-Siguenza | Twitter: @madebygps
- Josh Duffney | Twitter: @joshduffney
Have feedback? Submit an issue here.