Chapter 11. Functions

Table of Contents

1. Introduction
1.1. What are functions?
1.2. Function syntax
1.3. Positional parameters in functions
1.4. Displaying functions
2. Examples of functions in scripts
2.1. Recycling
2.2. Setting the path
2.3. Remote backups
3. Summary
4. Exercises

Abstract

In this chapter, we will discuss

  • What functions are

  • Creation and displaying of functions from the command line

  • Functions in scripts

  • Passing arguments to functions

  • When to use functions