LFCS 125 🐧 Shell Scripting — Functions
A function is a named block of commands that can be called multiple times within a script. It is the mechanism for eliminating repetition and for encapsulating logic that would otherwise be duplicated. The LFCS exam tests the syntax of the function definition, the scope of variables within a function, the mechanism for returning values,…