Files
rdb/man/insertdash.man
T

52 lines
1.1 KiB
Groff

.TH insertdash "" "" "/rdb Command"
.PC "Insert dash line as second line in table"
\fBinsertdash < \fItable-without-dashline\fR
.PP
.II "table^insert dash line"
.II "dash line^insert"
The command
.B insertdash
writes a line of dashes (hyphens) as the second line of the table.
It makes the dash line
by copying the head line and turning every character in the
first into a hyphen except the tabs.
.PP
This command is useful for files created by the system or non-COHERENT
programs that do not have the dash line.
However, you will also need to convert field separators into tabs.
.II sed
.II tr
You can do this with the COHERENT commands
.B tr
or
.BR sed .
.SH Example
.B insertdash
assumes a table that resembles the following:
.DM
Item Amount Cost Value Description
1 3 50 150 rubber gloves
.DE
.PP
After running
.B insertdash
on it, this table looks like this:
.DM
Item Amount Cost Value Description
---- ------ ---- ----- --------------
1 3 50 150 rubber gloves
.DE
.SH "See Also"
.B
dashline,
headoff,
headon
.R
.br
COHERENT Lexicon:
.B
sed,
tr
.R
.SO insertdash