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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.