1 1 9.2 User-Defined Functions 1 ========================== 1 1 Complicated 'awk' programs can often be simplified by defining your own 1 functions. User-defined functions can be called just like built-in ones 1 (⇒Function Calls), but it is up to you to define them (i.e., to 1 tell 'awk' what they should do). 1
1 · Definition Syntax How to write definitions and what they mean. · Function Example An example function definition and what it 1 does. · Function Caveats Things to watch out for. · Return Statement Specifying the value a function returns. · Dynamic Typing How variable types can change at runtime. 1