Chapter 7. Functions
In the previous chapter, we learned about packaging a set of commands in a script. In this chapter, we will look at using functions to provide the same kind of containment. We will discuss the differences between functions and scripts, and drill down more into parameters. The specific topics covered in this chapter include the following:
- Defining functions
- Comparing scripts and functions
- Executing functions
- Comment-based help
- Function output
- Parameters
- Default values