September 2009
Beginner
942 pages
85h 34m
English
name ( )
[function]name( ) {commands; }
Define name as a function. POSIX syntax. The reserved word function is optional. The function definition can be written on one line or across many. See Functions in Functions for more detailed information.
$count ( ) {>ls | wc -l>}
When issued at the command line, count displays the number of files in the current directory.