September 2009
Beginner
942 pages
85h 34m
English
function
[function]name( ) {commands; } functionname{commands; }
Define name as a shell function. See the description of semantic issues in the section Functions in Functions. If the reserved word function is given, the parentheses following name are optional.
Define a function to count files:
$function fcount {>ls | wc -l>}