Summary

In this chapter, you learned about the functions in shell scripts. You also learned about defining and displaying functions and removing the functions from a shell. In addition to this, you learned about passing arguments to functions, sharing data between functions, declaring local variables in functions, returning results from functions, and running functions in the background. And, finally, you learned about using the source and . (dot) commands. We used these commands to use the library of functions.

In the next chapter, you will learn about using traps and signals. You will also learn about creating menus with the help of the dialog utility.

 

Get Learning Linux Shell Scripting - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.