(gawk.info) Library Functions
Info Catalog
(gawk.info) Invoking Gawk
(gawk.info) Top
(gawk.info) Sample Programs
A Library of `awk' Functions
****************************
This chapter presents a library of useful `awk' functions. The
sample programs presented later ( Practical `awk' Programs Sample
Programs.) use these functions. The functions are presented here in a
progression from simple to complex.
Extracting Programs from Texinfo Source Files Extract Program,
presents a program that you can use to extract the source code for
these example library functions and programs from the Texinfo source
for this Info file. (This has already been done as part of the `gawk'
distribution.)
If you have written one or more useful, general purpose `awk'
functions, and would like to contribute them for a subsequent edition
of this Info file, please contact the author. Reporting Problems
and Bugs Bugs, for information on doing this. Don't just send code,
as you will be required to either place your code in the public domain,
publish it under the GPL ( GNU GENERAL PUBLIC LICENSE Copying.),
or assign the copyright in it to the Free Software Foundation.
Menu
* Portability Notes What to do if you don't have `gawk'.
* Nextfile Function Two implementations of a `nextfile'
function.
* Assert Function A function for assertions in `awk'
programs.
* Round Function A function for rounding if `sprintf' does
not do it correctly.
* Ordinal Functions Functions for using characters as numbers and
vice versa.
* Join Function A function to join an array into a string.
* Mktime Function A function to turn a date into a timestamp.
* Gettimeofday Function A function to get formatted times.
* Filetrans Function A function for handling data file transitions.
* Getopt Function A function for processing command line
arguments.
* Passwd Functions Functions for getting user information.
* Group Functions Functions for getting group information.
* Library Names How to best name private global variables in
library functions.
Info Catalog
(gawk.info) Invoking Gawk
(gawk.info) Top
(gawk.info) Sample Programs
automatically generated byinfo2html