Chapter 11. Functions

Table of Contents
11.1. Introduction
11.1.1. What are functions?
11.1.2. Function syntax
11.1.3. Positional parameters in functions
11.1.4. Displaying functions
11.2. Examples of functions in scripts
11.2.1. Recycling
11.2.2. Setting the path
11.2.3. Remote backups
11.3. Summary
11.4. Exercises

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