June 2006
Intermediate to advanced
64 pages
2h 42m
English
name()
name() {commands; }
Define name as a function. POSIX syntax.
The function definition can be written on one line or across many.
You may also provide the function
keyword, an alternate form that works similarly. See the earlier
section Functions.
$count ( ) {>ls | wc -l>}
When issued at the command line, count now displays the number of files
in the current directory.
Read now
Unlock full access