First page Back Continue Last page Graphics
Functions in bash
You will learn that functions are exceptionally useful, and it's good to see them in bash.
Pages 927 - 935 in Quigley
A function is a group of regular shell-script statements is a self-contained package.
You define a function as:
function somename ()
{
statement
statement
…
}
And you call it by using the name as if it were a normal command.