Chapter 9: Functions

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to: navigation, search
← Chapter 8 ChallengesHomeWriting your first shell function →

Objectives:

  • Define and use 'functions' in scripts.
  • Explains how to pass arguments into a function.
  • Sharing variables with main script.
  • Creating simple shell script function libraries or files.