header - generate a header to a table
SYNOPSIS
header [ -fc ] [-Dn] [-r[n]] column1 column2 ...
DESCRIPTION
header
generates an empty table on the standard output,
using the command line arguments
as column names.
It is useful for on-the-fly
data processing by
/rdb
commands which expect the proper format.
OPTIONS
- -fc
- use c (instead of TAB) as the input column
separation character.
- -Dn
- turn on debugging at level n, or 1 if n
is not specified.
- -r[n]
- add n blank records to the table
(default is 1).
EXAMPLE
To create a table with a single record containing the contents
of shell variables $LOGNAME and $UID:
$ header -r user_name user_id |
compute "user_name = \\"$LOGNAME\\"; user_id = \\"$UID\\""
user_name user_id
--------- -------
wright 501
SEE ALSO